com.ibm.wsspi.security.audit
Interface AuditEncryption
- public interface AuditEncryption
Method Summary
Modifier and Type | Method and Description |
---|---|
|
decrypt(byte[] data,java.security.Key key)
The
decrypt operation takes a UTF-8 encoded String in the form of a byte[].
|
|
encrypt(byte[] data,java.security.Key key)
The
encrypt operation takes a UTF-8 encoded String in the form of a byte[].
|
|
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
|
Method Detail
encrypt
- byte[] encrypt(byte[] data,
- java.security.Key key)
- throws com.ibm.wsspi.security.audit.AuditEncryptException
Returns:
byte[] of encrypted data
Throws:
com.ibm.wsspi.security.audit.AuditEncryptException
decrypt
- byte[] 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.
Returns:
byte[]
Throws:
com.ibm.wsspi.security.audit.AuditDecryptException
initialize
- 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)
- throws com.ibm.wsspi.security.audit.AuditEncryptException
The initialize
method initializes the AuditEncryption implementation
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.