com.nimbusds.jose
Enum Payload.Origin

java.lang.Object
  extended by java.lang.Enum<Payload.Origin>
      extended by com.nimbusds.jose.Payload.Origin
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Payload.Origin>
Enclosing class:
Payload

public static enum Payload.Origin
extends java.lang.Enum<Payload.Origin>

Enumeration of the original data types used to create a Payload.


Enum Constant Summary
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.
STRING
          The payload was created from a string.
 
Method Summary
static Payload.Origin valueOf(java.lang.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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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.

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2013 NimbusDS. All Rights Reserved.