Package org.webpki.json
Class JSONEncrypter
java.lang.Object
org.webpki.json.JSONEncrypter
- Direct Known Subclasses:
JSONAsymKeyEncrypter,JSONSymKeyEncrypter,JSONX509Encrypter
Support class for encryption generators.
-
Method Summary
Modifier and TypeMethodDescriptionsetExtensions(JSONObjectWriter extensions) Set "crit" for this encryption object.Set optional "kid" for this encryption object.setOutputPublicKeyInfo(boolean flag) Set if public key information should be provided in the encryption object.
-
Method Details
-
setExtensions
Set "crit" for this encryption object.- Parameters:
extensions- JSON object holding the extension properties and associated values- Returns:
this
-
setKeyId
Set optional "kid" for this encryption object.- Parameters:
keyId- The identifier- Returns:
this
-
setOutputPublicKeyInfo
Set if public key information should be provided in the encryption object. Note: defaulttrue.- Parameters:
flag-trueif such information is to be provided- Returns:
this
-