|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EncryptionScheme
Describes a password-based encryption scheme.
| Method Summary | |
|---|---|
byte[] |
decrypt(char[] password,
byte[] ciphertext)
Decrypts the given ciphertext bytes into a byte array of plaintext using a decryption key based on the given password. |
void |
decrypt(char[] password,
InputStream in,
OutputStream out)
Decrypts the data in the given ciphertext input stream into plaintext in the output stream. |
byte[] |
encrypt(char[] password,
byte[] plaintext)
Encrypts the given plaintext bytes into a byte array of ciphertext using an encryption key derived from the password. |
void |
encrypt(char[] password,
InputStream in,
OutputStream out)
Encrypts the data in the given plaintext input stream into ciphertext in the output stream. |
| Method Detail |
|---|
byte[] encrypt(char[] password,
byte[] plaintext)
throws CryptException
password - Basis for encryption.plaintext - Input plaintext bytes.
CryptException - On encryption errors.
void encrypt(char[] password,
InputStream in,
OutputStream out)
throws CryptException,
IOException
Base64FilterOutputStream or HexFilterOutputStream to produce ciphertext in
the output stream in an encoded string repreprestation.
password - Basis for encryption.in - Input stream of plaintext.out - Output stream of ciphertext.
CryptException - On encryption errors.
IOException - On stream read/write errors.
byte[] decrypt(char[] password,
byte[] ciphertext)
throws CryptException
password - Basis for encryption.ciphertext - Input ciphertext bytes.
CryptException - On decryption errors.
void decrypt(char[] password,
InputStream in,
OutputStream out)
throws CryptException,
IOException
Base64FilterInputStream or HexFilterInputStream to consume ciphertext in
an encoded string representation.
password - Basis for encryption.in - Input stream of ciphertext.out - Output stream of plaintext.
CryptException - On decryption errors.
IOException - On stream read/write errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||