|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Encryptor
A simple interface for performing encryption/decryption operations.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Method Summary | |
---|---|
void |
acceptDecryptKey(byte[] pValue)
Sets the key property. |
void |
acceptEncryptKey(byte[] pValue)
Sets the pValue property. |
byte[] |
decrypt(byte[] pValue)
Decrypts encrypted pValue byte[]. |
java.lang.String |
decrypt(java.lang.String pValue)
Decrypts encrypted pValue string. |
byte[] |
encrypt(byte[] pValue)
Encrypts pValue byte[]. |
java.lang.String |
encrypt(java.lang.String pValue)
Encrypts pValue string. |
Field Detail |
---|
static final java.lang.String CLASS_VERSION
Method Detail |
---|
void acceptEncryptKey(byte[] pValue) throws EncryptorException
pValue
property. This must get called before any
encryption operations take place.
pValue
- The byte[]
to set as the key property.
EncryptorException
- This exception indicates that a severe error
occured while performing a cryptograpy operation.void acceptDecryptKey(byte[] pValue) throws EncryptorException
key
property. This must get called before any
encryption operations take place.
pValue
- The byte[]
to set as the key property.
EncryptorException
- This exception indicates that a severe error
occured while performing a cryptograpy operation.java.lang.String encrypt(java.lang.String pValue) throws EncryptorException
pValue
string.
pValue
- String to encrypt.
EncryptorException
- This exception indicates that a severe error
occured while performing a cryptograpy operation.byte[] encrypt(byte[] pValue) throws EncryptorException
pValue
byte[].
pValue
- byte[] array to encrypt.
EncryptorException
- This exception indicates that a severe error
occured while performing a cryptograpy operation.java.lang.String decrypt(java.lang.String pValue) throws EncryptorException
pValue
string.
pValue
- encrypted String
EncryptorException
- This exception indicates that a severe error
occured while performing a cryptograpy operation.byte[] decrypt(byte[] pValue) throws EncryptorException
pValue
byte[].
pValue
- encrypted array of byte[]
EncryptorException
- This exception indicates that a severe error
occured while performing a cryptograpy operation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |