com.ibm.wsspi.security.audit
Interface AuditEncryption
-
public interface AuditEncryption
-
-
Method Summary
Methods Modifier and Type Method and Description byte[]
decrypt(byte[] data, java.security.Key key)
Thedecrypt
operation takes a UTF-8 encoded String in the form of a byte[].byte[]
encrypt(byte[] data, java.security.Key key)
Theencrypt
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)
Theinitialize
method initializes the AuditEncryption implementation
-
-
-
Method Detail
-
encrypt
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.- Parameters:
byte[]
- data to encryptjava.security.Key
- shared key- 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.- Parameters:
byte[]
- data to decrypt- 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- Parameters:
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 entry- Throws:
com.ibm.wsspi.security.audit.AuditEncryptException
-
-