public interface AuditEncryption
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] data,
java.security.Key key)
The
decrypt operation takes a UTF-8 encoded String in the form of a byte[]. |
byte[] |
encrypt(byte[] data,
java.security.Key key)
The
encrypt operation takes a UTF-8 encoded String in the form of a byte[]. |
void |
initialize(java.lang.String keyStoreName,
java.lang.String keyStorePath,
java.lang.String keyStoreType,
java.lang.String keyStoreProvider,
java.lang.String keyStorePassword,
java.lang.String keyAlias)
The
initialize method initializes the AuditEncryption implementation
|
byte[] encrypt(byte[] data,
java.security.Key key)
throws com.ibm.wsspi.security.audit.AuditEncryptException
The encrypt operation takes a UTF-8 encoded String in the form of a byte[].
The byte[] is generated from String.getBytes("UTF-8").
An encrypted byte[] is returned.
byte[] - data to encryptjava.security.Key - shared keycom.ibm.wsspi.security.audit.AuditEncryptExceptionbyte[] decrypt(byte[] data,
java.security.Key key)
throws com.ibm.wsspi.security.audit.AuditDecryptException
The decrypt operation takes a UTF-8 encoded String in the form of a byte[].
The byte[] is generated from String.getBytes("UTF-8").
A decrypted byte[] is returned.
byte[] - data to decryptcom.ibm.wsspi.security.audit.AuditDecryptExceptionvoid initialize(java.lang.String keyStoreName,
java.lang.String keyStorePath,
java.lang.String keyStoreType,
java.lang.String keyStoreProvider,
java.lang.String keyStorePassword,
java.lang.String keyAlias)
throws com.ibm.wsspi.security.audit.AuditEncryptException
The initialize method initializes the AuditEncryption implementation
String - representing the non-fully qualified keystore nameString - representing the path to the keystoreString - representing the keystore typeString - representing the keystore providerString - representing the password for the keystoreString - representing the alias for the keystore entrycom.ibm.wsspi.security.audit.AuditEncryptException