Package com.nimbusds.jose
Enum JWEObject.State
- java.lang.Object
-
- java.lang.Enum<JWEObject.State>
-
- com.nimbusds.jose.JWEObject.State
-
- All Implemented Interfaces:
Serializable
,Comparable<JWEObject.State>
- Enclosing class:
- JWEObject
public static enum JWEObject.State extends Enum<JWEObject.State>
Enumeration of the states of a JSON Web Encryption (JWE) secured object.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DECRYPTED
The JWE secured object is decrypted.ENCRYPTED
The JWE secured object is encrypted.UNENCRYPTED
The JWE secured object is created but not encrypted yet.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JWEObject.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static JWEObject.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNENCRYPTED
public static final JWEObject.State UNENCRYPTED
The JWE secured object is created but not encrypted yet.
-
ENCRYPTED
public static final JWEObject.State ENCRYPTED
The JWE secured object is encrypted.
-
DECRYPTED
public static final JWEObject.State DECRYPTED
The JWE secured object is decrypted.
-
-
Method Detail
-
values
public static JWEObject.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JWEObject.State c : JWEObject.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JWEObject.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-