|
Sun Adapter for LDAP API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cryptor
Provides basic cryptographic functionality such as encryption/decryption etc.
Field Summary | |
---|---|
static java.lang.String |
CIPHER_KEY_ALIAS_PROPERTY_KEY
The property key for the name of the alias under the key is stored in the keystore. |
static java.lang.String |
CIPHER_KEY_PASSWORD_PROPERTY_KEY
The property key for the password under the key is stored in the keystore. |
static java.lang.String |
CIPHER_TRANSFORMATION_PROPERTY_KEY
The property key for the transformation used by the cipher. |
Method Summary | |
---|---|
byte[] |
decodeBase64(byte[] aData)
Decodes the Base64 encoded aData. |
byte[] |
decodeBase64AndDecrypt(byte[] aData)
Decrypts the Base64 encoded aData and then decrypts using the same Cipher that was used to encrypt it. |
byte[] |
decrypt(byte[] aData)
Decrypts the aData using a Cipher. |
byte[] |
encodeBase64(byte[] aData)
Encodes the aData to Base64 encoded form. |
byte[] |
encrypt(byte[] aData)
Encrypts the aData using a Cipher. |
byte[] |
encryptAndEncodeBase64(byte[] aData)
Encrypts the aData using a Cipher and returns the results in Base64 encoded form. |
Field Detail |
---|
static final java.lang.String CIPHER_KEY_ALIAS_PROPERTY_KEY
static final java.lang.String CIPHER_KEY_PASSWORD_PROPERTY_KEY
static final java.lang.String CIPHER_TRANSFORMATION_PROPERTY_KEY
Method Detail |
---|
byte[] encrypt(byte[] aData)
aData
- The data to be encrypted.
java.lang.SecurityException
- Thrown when failed to encrypt.byte[] decrypt(byte[] aData)
aData
- The encyrpted data.
java.lang.SecurityException
- Thrown when failed to decrypt.byte[] encodeBase64(byte[] aData)
aData
- The data to be encoded in Base64.
java.lang.SecurityException
- Thrown when failed to encode.byte[] decodeBase64(byte[] aData)
aData
- The Base64 encoded data.
java.lang.SecurityException
- Thrown when failed to decode.byte[] encryptAndEncodeBase64(byte[] aData)
aData
- The data to be encrypted.
java.lang.SecurityException
- Thrown when failed to encrypt.byte[] decodeBase64AndDecrypt(byte[] aData)
aData
- The encyrpted data in Base64 encoded form.
java.lang.SecurityException
- Thrown when failed to decrypt.
|
Sun Adapter for LDAP API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |