Package com.nimbusds.jose
Enum Payload.Origin
- All Implemented Interfaces:
Serializable
,Comparable<Payload.Origin>
,java.lang.constant.Constable
- Enclosing class:
- Payload
Enumeration of the original data types used to create a
Payload
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe payload was created from a Base64URL-encoded object.The payload was created from a byte array.The payload was created from a JSON object.The payload was created from a JWS object.The payload was created from a signed JSON Web Token (JWT).The payload was created from a string. -
Method Summary
Modifier and TypeMethodDescriptionstatic Payload.Origin
Returns the enum constant of this type with the specified name.static Payload.Origin[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JSON
The payload was created from a JSON object. -
STRING
The payload was created from a string. -
BYTE_ARRAY
The payload was created from a byte array. -
BASE64URL
The payload was created from a Base64URL-encoded object. -
JWS_OBJECT
The payload was created from a JWS object. -
SIGNED_JWT
The payload was created from a signed JSON Web Token (JWT).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-