Package com.authlete.common.types
Enum AssertionTarget
- java.lang.Object
-
- java.lang.Enum<AssertionTarget>
-
- com.authlete.common.types.AssertionTarget
-
- All Implemented Interfaces:
Serializable
,Comparable<AssertionTarget>
public enum AssertionTarget extends Enum<AssertionTarget>
The part of the service that an assertion processor will be applied to.- Since:
- 2.39
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_REGISTRATION_SOFTWARE_STATEMENT
The assertion processor is used for the OAuth Dynamic Client Registration protocol's "software_statement" field, which contains a signed assertion of client attributes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssertionTarget
getByValue(short value)
Get the enum object with the given numerical value, ornull
if not found.short
getValue()
Get the numerical value for this target.String
toString()
static AssertionTarget
valueOf(String name)
Returns the enum constant of this type with the specified name.static AssertionTarget[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT_REGISTRATION_SOFTWARE_STATEMENT
public static final AssertionTarget CLIENT_REGISTRATION_SOFTWARE_STATEMENT
The assertion processor is used for the OAuth Dynamic Client Registration protocol's "software_statement" field, which contains a signed assertion of client attributes.
-
-
Method Detail
-
values
public static AssertionTarget[] 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 (AssertionTarget c : AssertionTarget.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssertionTarget 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
-
getValue
public short getValue()
Get the numerical value for this target.- Returns:
- The numerical value for this target.
- Since:
- 2.39
-
toString
public String toString()
- Overrides:
toString
in classEnum<AssertionTarget>
-
getByValue
public static AssertionTarget getByValue(short value)
Get the enum object with the given numerical value, ornull
if not found.- Parameters:
value
- The numerical value to search for.- Returns:
- The enum object, or
null
if not found. - Since:
- 2.39
-
-