|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
cryptix.message.stream.MessageOutputStream
cryptix.message.stream.EncryptedMessageOutputStream
A stream that encrypts another stream.
Field Summary |
Fields inherited from class cryptix.message.stream.MessageOutputStream |
spi |
Constructor Summary | |
protected |
EncryptedMessageOutputStream(MessageOutputStreamSpi spi,
java.security.Provider provider,
java.lang.String format)
Create a new EncryptedMessageOutputStream object containing the given SPI object. |
Method Summary | |
void |
addRecipient(KeyBundle bundle)
Adds a keybundle recipient |
void |
addRecipient(java.security.PublicKey publickey)
Adds a public key recipient |
void |
addRecipient(javax.crypto.SecretKey symmetrickey)
Adds a symmetric key recipient |
void |
addRecipient(java.lang.String passphrase)
Adds a passphrase recipient |
static EncryptedMessageOutputStream |
getInstance(java.lang.String format)
Returns an EncryptedMessageOutputStream that implements the given format. |
static EncryptedMessageOutputStream |
getInstance(java.lang.String format,
java.security.Provider provider)
Returns an EncryptedMessageOutputStream from the given provider that implements the given format. |
static EncryptedMessageOutputStream |
getInstance(java.lang.String format,
java.lang.String provider)
Returns an EncryptedMessageOutputStream from the given provider that implements the given format. |
Methods inherited from class cryptix.message.stream.MessageOutputStream |
close, flush, getFormat, getProvider, getSpi, init, setAttribute, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected EncryptedMessageOutputStream(MessageOutputStreamSpi spi, java.security.Provider provider, java.lang.String format)
Method Detail |
public static EncryptedMessageOutputStream getInstance(java.lang.String format) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static EncryptedMessageOutputStream getInstance(java.lang.String format, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public static EncryptedMessageOutputStream getInstance(java.lang.String format, java.security.Provider provider) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public final void addRecipient(java.security.PublicKey publickey) throws java.lang.IllegalStateException, java.lang.UnsupportedOperationException, java.io.IOException, MessageStreamException
InvalidStateException
- if this message has not been initialized
properly or if data has already been streamed
java.lang.UnsupportedOperationException
- if this particular format does not
support encrypting messages to public keys.
java.io.IOException
- on a general IOException that is not format specific.
MessageStreamException
- on a variety of format specific problems.
java.lang.IllegalStateException
public final void addRecipient(KeyBundle bundle) throws java.lang.IllegalStateException, java.lang.UnsupportedOperationException, java.io.IOException, MessageStreamException
InvalidStateException
- if this message has not been initialized
properly or if data has already been streamed
java.lang.UnsupportedOperationException
- if this particular format does not
support encrypting messages to public keys.
java.io.IOException
- on a general IOException that is not format specific.
MessageStreamException
- on a variety of format specific problems.
java.lang.IllegalStateException
public final void addRecipient(javax.crypto.SecretKey symmetrickey) throws java.lang.IllegalStateException, java.lang.UnsupportedOperationException, java.io.IOException, MessageStreamException
InvalidStateException
- if this message has not been initialized
properly or if data has already been streamed
java.lang.UnsupportedOperationException
- if this particular format does not
support encrypting messages to symmetric keys.
java.io.IOException
- on a general IOException that is not format specific.
MessageStreamException
- on a variety of format specific problems.
java.lang.IllegalStateException
public final void addRecipient(java.lang.String passphrase) throws java.lang.IllegalStateException, java.lang.UnsupportedOperationException, java.io.IOException, MessageStreamException
InvalidStateException
- if this message has not been initialized
properly or if the build() method has been called
java.lang.UnsupportedOperationException
- if this particular format does not
support encrypting messages to passphrases.
java.io.IOException
- on a general IOException that is not format specific.
MessageStreamException
- on a variety of format specific problems.
java.lang.IllegalStateException
|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |