|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Unstable public interface Encryptor
Encryptors apply a cipher to an OutputStream to produce ciphertext.
Method Summary | |
---|---|
OutputStream |
createEncryptionStream(OutputStream out)
Create a stream for encryption |
int |
getBlockSize()
Get the cipher's internal block size |
byte[] |
getIv()
Get the initialization vector |
int |
getIvLength()
Get the expected length for the initialization vector |
void |
reset()
Reset state, reinitialize with the key and iv |
void |
setIv(byte[] iv)
Set the initialization vector |
void |
setKey(Key key)
Set the secret key |
Method Detail |
---|
void setKey(Key key)
key
- int getIvLength()
int getBlockSize()
byte[] getIv()
void setIv(byte[] iv)
iv
- OutputStream createEncryptionStream(OutputStream out)
out
- void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |