Class SharedSaltKey

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

public final class SharedSaltKey extends MacKey
Shared Salt Key extension of Cryptographic Algorithm Key containing the concatenation of shared public keys
See Also:
  • Constructor Details

    • SharedSaltKey

      public SharedSaltKey(byte[] key)
      Shared Salt Key constructor with required symmetric key
      Parameters:
      key - Symmetric Key consisting of 64 bytes concatenated from shared public keys
  • 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