com.ibm.wsspi.security.audit

Interface AuditEncryption


  1. public interface AuditEncryption

Method Summary

Modifier and Type Method and Description
  1. byte[]
decrypt(byte[] data,java.security.Key key)
The decrypt operation takes a UTF-8 encoded String in the form of a byte[].
  1. byte[]
encrypt(byte[] data,java.security.Key key)
The encrypt operation takes a UTF-8 encoded String in the form of a byte[].
  1. 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

Method Detail

encrypt

  1. byte[] encrypt(byte[] data,
  2. java.security.Key key)
  3. 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.

Returns:
byte[] of encrypted data
Throws:
com.ibm.wsspi.security.audit.AuditEncryptException

decrypt

  1. byte[] decrypt(byte[] data,
  2. java.security.Key key)
  3. 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

  1. void initialize(java.lang.String keyStoreName,
  2. java.lang.String keyStorePath,
  3. java.lang.String keyStoreType,
  4. java.lang.String keyStoreProvider,
  5. java.lang.String keyStorePassword,
  6. java.lang.String keyAlias)
  7. throws com.ibm.wsspi.security.audit.AuditEncryptException

The initialize method initializes the AuditEncryption implementation

Throws:
com.ibm.wsspi.security.audit.AuditEncryptException