Package com.nimbusds.jose
Enum Payload.Origin
- java.lang.Object
-
- java.lang.Enum<Payload.Origin>
-
- com.nimbusds.jose.Payload.Origin
-
- All Implemented Interfaces:
Serializable
,Comparable<Payload.Origin>
- Enclosing class:
- Payload
public static enum Payload.Origin extends Enum<Payload.Origin>
Enumeration of the original data types used to create aPayload
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASE64URL
The payload was created from a Base64URL-encoded object.BYTE_ARRAY
The payload was created from a byte array.JSON
The payload was created from a JSON object.JWS_OBJECT
The payload was created from a JWS object.SIGNED_JWT
The payload was created from a signed JSON Web Token (JWT).STRING
The payload was created from a string.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Payload.Origin
valueOf(String name)
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 Detail
-
JSON
public static final Payload.Origin JSON
The payload was created from a JSON object.
-
STRING
public static final Payload.Origin STRING
The payload was created from a string.
-
BYTE_ARRAY
public static final Payload.Origin BYTE_ARRAY
The payload was created from a byte array.
-
BASE64URL
public static final Payload.Origin BASE64URL
The payload was created from a Base64URL-encoded object.
-
JWS_OBJECT
public static final Payload.Origin JWS_OBJECT
The payload was created from a JWS object.
-
SIGNED_JWT
public static final Payload.Origin SIGNED_JWT
The payload was created from a signed JSON Web Token (JWT).
-
-
Method Detail
-
values
public static Payload.Origin[] 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 (Payload.Origin c : Payload.Origin.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Payload.Origin 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
-
-