Package com.authlete.common.types
Enum ClientAssertionType
- java.lang.Object
-
- java.lang.Enum<ClientAssertionType>
-
- com.authlete.common.types.ClientAssertionType
-
- All Implemented Interfaces:
Serializable,Comparable<ClientAssertionType>
public enum ClientAssertionType extends Enum<ClientAssertionType>
Client Assertion Type.- Since:
- 3.74, Authlete 3.0
- See Also:
- IANA: OAuth Parameters / OAuth URI
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JWT_BEARER"urn:ietf:params:oauth:client-assertion-type:jwt-bearer".JWT_CLIENT_ATTESTATIONDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientAssertionTypegetByValue(short value)Find an instance of this enum by a value.shortgetValue()Get the integer representation of this enum instance.static ClientAssertionTypeparse(String type)ConvertStringtoClientAssertionType.static ClientAssertionType[]toArray(int bits)static inttoBits(EnumSet<ClientAssertionType> set)static EnumSet<ClientAssertionType>toSet(int bits)static EnumSet<ClientAssertionType>toSet(ClientAssertionType[] array)StringtoString()static ClientAssertionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ClientAssertionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JWT_BEARER
public static final ClientAssertionType JWT_BEARER
"urn:ietf:params:oauth:client-assertion-type:jwt-bearer".The client assertion type used by the
client_secret_jwtclient authentication method and theprivate_key_jwtclient authentication method.
-
JWT_CLIENT_ATTESTATION
public static final ClientAssertionType JWT_CLIENT_ATTESTATION
Deprecated."urn:ietf:params:oauth:client-assertion-type:jwt-client-attestation".The client assertion type used by the
attest_jwt_client_authclient authentication method.The draft 03 of "OAuth 2.0 Attestation-Based Client Authentication" has deprecated the usage of the
client_assertionparameter and theclient_assertion_typeparameter, and introduced another different way to specify a pair of a client attestation and a client attestation PoP. Consequently, this enum entry is no longer used.
-
-
Method Detail
-
values
public static ClientAssertionType[] 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 (ClientAssertionType c : ClientAssertionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientAssertionType 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 integer representation of this enum instance.
-
toString
public String toString()
- Overrides:
toStringin classEnum<ClientAssertionType>
-
getByValue
public static ClientAssertionType getByValue(short value)
Find an instance of this enum by a value.- Parameters:
value- The integer representation of the instance to find.- Returns:
- An instance of this enum, or
nullif not found.
-
parse
public static ClientAssertionType parse(String type)
ConvertStringtoClientAssertionType.- Parameters:
type- A client assertion type. For example,"urn:ietf:params:oauth:client-assertion-type:jwt-bearer".- Returns:
ClientAssertionTypeinstance, ornull.
-
toBits
public static int toBits(EnumSet<ClientAssertionType> set)
-
toArray
public static ClientAssertionType[] toArray(int bits)
-
toSet
public static EnumSet<ClientAssertionType> toSet(int bits)
-
toSet
public static EnumSet<ClientAssertionType> toSet(ClientAssertionType[] array)
-
-