Class JSONEncrypter

java.lang.Object
org.webpki.json.JSONEncrypter
Direct Known Subclasses:
JSONAsymKeyEncrypter, JSONSymKeyEncrypter, JSONX509Encrypter

public abstract class JSONEncrypter extends Object
Support class for encryption generators.
  • Method Details

    • setExtensions

      public JSONEncrypter setExtensions(JSONObjectWriter extensions)
      Set "crit" for this encryption object.
      Parameters:
      extensions - JSON object holding the extension properties and associated values
      Returns:
      this
    • setKeyId

      public JSONEncrypter setKeyId(String keyId)
      Set optional "kid" for this encryption object.
      Parameters:
      keyId - The identifier
      Returns:
      this
    • setOutputPublicKeyInfo

      public JSONEncrypter setOutputPublicKeyInfo(boolean flag)
      Set if public key information should be provided in the encryption object. Note: default true.
      Parameters:
      flag - true if such information is to be provided
      Returns:
      this