Class JSONSigner

java.lang.Object
org.webpki.json.JSONSigner
Direct Known Subclasses:
JSONAsymKeySigner, JSONHmacSigner, JSONX509Signer

public abstract class JSONSigner extends Object
Support class for signature generators.
  • Method Details

    • setExtensionNames

      public JSONSigner setExtensionNames(String[] names)
      Set (object level) list of permitted extension elements. This must only be done for the first signer in a multi-signature scenario
      Parameters:
      names - A list of permitted extensions
      Returns:
      this
    • setExtensionData

      public JSONSigner setExtensionData(JSONObjectWriter extensions)
      Set specific extension data for this signature.
      Parameters:
      extensions - JSON object holding the extension properties and associated values
      Returns:
      this
    • setExcluded

      public JSONSigner setExcluded(String[] excluded)
      Set "excl" for this signature.
      Parameters:
      excluded - Array holding the names of properties that must be excluded from the signature
      Returns:
      this
    • setKeyId

      public JSONSigner setKeyId(String keyId)
      Set optional "keyId" for this signature. Note: default null.
      Parameters:
      keyId - The identifier. If null no KeyId is generated
      Returns:
      this
    • getNormalizedData

      public byte[] getNormalizedData()
    • setExtensionNames

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