Package org.webpki.json
Enum Class JSONCryptoHelper.PUBLIC_KEY_OPTIONS
java.lang.Object
java.lang.Enum<JSONCryptoHelper.PUBLIC_KEY_OPTIONS>
org.webpki.json.JSONCryptoHelper.PUBLIC_KEY_OPTIONS
- All Implemented Interfaces:
Serializable
,Comparable<JSONCryptoHelper.PUBLIC_KEY_OPTIONS>
,Constable
- Enclosing class:
JSONCryptoHelper
public static enum JSONCryptoHelper.PUBLIC_KEY_OPTIONS
extends Enum<JSONCryptoHelper.PUBLIC_KEY_OPTIONS>
Public key parameter to Options
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionKey encryption with a certificate pathKey encryption but no public key or certificate pathKey encryption with at least a public key or a key idkey encryption with a public key or a key idKey encryption with optional public keyOnly valid for encryption = No key encryptionKey encryption with public key -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static JSONCryptoHelper.PUBLIC_KEY_OPTIONS[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAIN_ENCRYPTION
Only valid for encryption = No key encryption -
FORBIDDEN
Key encryption but no public key or certificate path -
REQUIRED
Key encryption with public key -
OPTIONAL
Key encryption with optional public key -
KEY_ID_OR_PUBLIC_KEY
Key encryption with at least a public key or a key id -
KEY_ID_XOR_PUBLIC_KEY
key encryption with a public key or a key id -
CERTIFICATE_PATH
Key encryption with a certificate path
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-