|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Encryption
Raw interface to be implemented for different encryption algorithms. An implementation is expected to store the keys to be used for encrypting or decrypting data and then encrypt/decrypt a data stream on-demand.
| Method Summary | |
|---|---|
void |
clear()
Triggered by cloud provider implementations when done with any encryption/decryption. |
void |
decrypt(InputStream encryptedData,
OutputStream rawData)
Decrypts an incoming encrypted stream of data and sends the de-crypted contents to the specified output stream. |
void |
encrypt(InputStream rawData,
OutputStream encryptedData)
Encrypts an incoming stream of raw data and sends the encrypted data to the specified output stream. |
| Method Detail |
|---|
void clear()
ProviderContext.clear(byte[][])
passing in any encryption keys used by this object.
void decrypt(InputStream encryptedData,
OutputStream rawData)
throws EncryptionException
encryptedData - the encrypted data streamrawData - the de-crypted output stream
EncryptionException - an error occurred decrypting the data
void encrypt(InputStream rawData,
OutputStream encryptedData)
throws EncryptionException
rawData - the original data in the form of an input streamencryptedData - the output stream into which the encrypted data is placed
EncryptionException - an error occurred encrypting the data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.