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_ATTESTATION
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientAssertionType
getByValue(short value)
Find an instance of this enum by a value.short
getValue()
Get the integer representation of this enum instance.static ClientAssertionType
parse(String type)
ConvertString
toClientAssertionType
.static ClientAssertionType[]
toArray(int bits)
static int
toBits(EnumSet<ClientAssertionType> set)
static EnumSet<ClientAssertionType>
toSet(int bits)
static EnumSet<ClientAssertionType>
toSet(ClientAssertionType[] array)
String
toString()
static ClientAssertionType
valueOf(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_jwt
client authentication method and theprivate_key_jwt
client 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_auth
client authentication method.The draft 03 of "OAuth 2.0 Attestation-Based Client Authentication" has deprecated the usage of the
client_assertion
parameter and theclient_assertion_type
parameter, 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:
toString
in 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
null
if not found.
-
parse
public static ClientAssertionType parse(String type)
ConvertString
toClientAssertionType
.- Parameters:
type
- A client assertion type. For example,"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
.- Returns:
ClientAssertionType
instance, 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)
-
-