java.lang.Object
com.aquima.interactions.foundation.security.cert.AesKey
All Implemented Interfaces:
Serializable

public class AesKey extends Object implements Serializable
Class representing an AES key.
Since:
17.1
See Also:
  • Constructor Details

    • AesKey

      protected AesKey(SecretKey privateKey)
  • Method Details

    • getSecretKey

      public SecretKey getSecretKey()
      This method returns the secret key.
      Returns:
      the secret key.
    • importFrom

      public static AesKey importFrom(InputStream stream)
      This method reads a key from an input stream.
      Parameters:
      stream - The input stream the key should be read from.
      Returns:
      The key provided by the input stream.
      Throws:
      CryptoGraphicException - This exception is thrown when the key could not be read from the input stream.