Package org.webpki.json
Class JSONCryptoHelper.Options
java.lang.Object
org.webpki.json.JSONCryptoHelper.Options
- Enclosing class:
JSONCryptoHelper
Common JEF/JSF decoding options.
This class holds options that are checked during decoding.
The following options are currently recognized:- Algorithm preference. Default: JOSE
- Public key option. Default: OPTIONAL
- keyId option. Default: OPTIONAL
- Permitted extensions. Default: none
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetAlgorithmPreferences
(AlgorithmPreferences algorithmPreferences) setKeyIdOption
(JSONCryptoHelper.KEY_ID_OPTIONS keyIdOption) setPermittedExclusions
(String[] exclusions) setPermittedExtensions
(JSONCryptoHelper.ExtensionHolder extensionHolder) setPublicKeyOption
(JSONCryptoHelper.PUBLIC_KEY_OPTIONS publicKeyOption)
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
setAlgorithmPreferences
-
setPublicKeyOption
public JSONCryptoHelper.Options setPublicKeyOption(JSONCryptoHelper.PUBLIC_KEY_OPTIONS publicKeyOption) -
setKeyIdOption
-
setPermittedExtensions
public JSONCryptoHelper.Options setPermittedExtensions(JSONCryptoHelper.ExtensionHolder extensionHolder) -
setPermittedExclusions
-