Class JSONHmacSigner

java.lang.Object
org.webpki.json.JSONSigner
org.webpki.json.JSONHmacSigner

public class JSONHmacSigner extends JSONSigner
Initiator object for HMAC signatures.
  • Constructor Details

    • JSONHmacSigner

      public JSONHmacSigner(HmacSignerInterface signer)
      Constructor for custom crypto solutions.
      Parameters:
      signer - Handle to implementation
    • JSONHmacSigner

      public JSONHmacSigner(byte[] rawKey, HmacAlgorithms algorithm)
      Constructor for JCE based solutions.
      Parameters:
      rawKey - Key
      algorithm - MAC algorithm
  • Method Details

    • setAlgorithmPreferences

      public JSONHmacSigner setAlgorithmPreferences(AlgorithmPreferences algorithmPreferences)
    • setExtensionNames

      public void setExtensionNames(String[] names, boolean encryptionMode)