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)
      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
    • 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 encrypt
        java.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 name
        String - representing the path to the keystore
        String - representing the keystore type
        String - representing the keystore provider
        String - representing the password for the keystore
        String - representing the alias for the keystore entry
        Throws:
        com.ibm.wsspi.security.audit.AuditEncryptException
IBM WebSphere Application ServerTM
Release 8.5