|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
cryptix.message.stream.DecodedMessageInputStream
A stream that decodes, decrypts and verifies messages
Field Summary | |
static int |
INTEGRITY_GOOD
|
static int |
INTEGRITY_NOT_PROTECTED
|
static int |
INTEGRITY_VIOLATED
|
protected DecodedMessageInputStreamSpi |
spi
|
static int |
VERIFICATION_BAD_SIGNATURE
|
static int |
VERIFICATION_GOOD_SIGNATURE
|
static int |
VERIFICATION_NOT_SIGNED
|
Constructor Summary | |
protected |
DecodedMessageInputStream(DecodedMessageInputStreamSpi spi,
java.security.Provider provider,
java.lang.String format)
Create a new DecodedMessageInputStream object containing the given SPI object. |
Method Summary | |
void |
close()
|
java.lang.String |
getFormat()
Returns the name of the format of this object. |
static DecodedMessageInputStream |
getInstance(java.lang.String format)
Returns an DecodedMessageInputStream that implements the given format. |
static DecodedMessageInputStream |
getInstance(java.lang.String format,
java.security.Provider provider)
Returns an DecodedMessageInputStream from the given provider that implements the given format. |
static DecodedMessageInputStream |
getInstance(java.lang.String format,
java.lang.String provider)
Returns an DecodedMessageInputStream from the given provider that implements the given format. |
int |
getIntegrityResult()
|
java.security.Provider |
getProvider()
Returns the provider of this object. |
int |
getVerificationResult()
|
void |
init(java.io.InputStream in,
DecryptionKeyCallback dkc,
VerificationKeyCallback vkc)
|
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int VERIFICATION_NOT_SIGNED
public static final int VERIFICATION_GOOD_SIGNATURE
public static final int VERIFICATION_BAD_SIGNATURE
public static final int INTEGRITY_NOT_PROTECTED
public static final int INTEGRITY_GOOD
public static final int INTEGRITY_VIOLATED
protected final DecodedMessageInputStreamSpi spi
Constructor Detail |
protected DecodedMessageInputStream(DecodedMessageInputStreamSpi spi, java.security.Provider provider, java.lang.String format)
Method Detail |
public static DecodedMessageInputStream getInstance(java.lang.String format) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static DecodedMessageInputStream getInstance(java.lang.String format, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public static DecodedMessageInputStream getInstance(java.lang.String format, java.security.Provider provider) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public final java.security.Provider getProvider()
public final java.lang.String getFormat()
public final void init(java.io.InputStream in, DecryptionKeyCallback dkc, VerificationKeyCallback vkc) throws java.lang.IllegalStateException, java.io.IOException, MessageStreamException
java.lang.IllegalStateException
java.io.IOException
MessageStreamException
public final int read() throws java.io.IOException
java.io.IOException
public final int read(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
public final void close() throws java.io.IOException
java.io.IOException
public final int getVerificationResult() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public final int getIntegrityResult() throws java.lang.IllegalStateException
java.lang.IllegalStateException
|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |