java.lang.Object
com.exceptionfactory.jagged.framework.crypto.MacKey
All Implemented Interfaces:
Serializable, Key, SecretKey, Destroyable
Direct Known Subclasses:
PayloadNonceKey, SharedSaltKey, SharedSecretKey

public class MacKey extends Object
Message Authentication Code Key extension of Cryptographic Algorithm Key using HmacSHA256
See Also:
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Get Cryptographic Algorithm for which the key will be used
      Specified by:
      getAlgorithm in interface Key
      Returns:
      Cryptographic Algorithm
    • getFormat

      public String getFormat()
      Get Key format returns RAW indicating encoded key contains raw bytes
      Specified by:
      getFormat in interface Key
      Returns:
      Format name of RAW
    • getEncoded

      public byte[] getEncoded()
      Get encoded key bytes
      Specified by:
      getEncoded in interface Key
      Returns:
      Encoded Key byte array
    • destroy

      public void destroy()
      Destroy Key so that it cannot be used for subsequent operations
      Specified by:
      destroy in interface Destroyable
    • isDestroyed

      public boolean isDestroyed()
      Return destroyed status
      Specified by:
      isDestroyed in interface Destroyable
      Returns:
      Key destroyed status