Enum AuthorizationCredentialType
- java.lang.Object
-
- java.lang.Enum<AuthorizationCredentialType>
-
- com.nimbusds.openid.connect.provider.spi.reg.AuthorizationCredentialType
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthorizationCredentialType>
public enum AuthorizationCredentialType extends Enum<AuthorizationCredentialType>
The type of authorisation credential used at the OAuth 2.0 client registration endpoint, for an initial registration with POST or a registration update with PUT.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INITIAL_TOKEN
Regular access token issued by the Connect2id server (for some OAuth 2.0 grant) for the purpose of initial registration.MASTER_TOKEN
Master access token for the registration endpoint.OPEN
For an initial registration received without an access token when the Connect2id server is configured for open registration.REGISTRATION_TOKEN
Access token issued to the client at the registration endpoint to allow the client to update its own metadata.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthorizationCredentialType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuthorizationCredentialType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MASTER_TOKEN
public static final AuthorizationCredentialType MASTER_TOKEN
Master access token for the registration endpoint.
-
INITIAL_TOKEN
public static final AuthorizationCredentialType INITIAL_TOKEN
Regular access token issued by the Connect2id server (for some OAuth 2.0 grant) for the purpose of initial registration.
-
REGISTRATION_TOKEN
public static final AuthorizationCredentialType REGISTRATION_TOKEN
Access token issued to the client at the registration endpoint to allow the client to update its own metadata.
-
OPEN
public static final AuthorizationCredentialType OPEN
For an initial registration received without an access token when the Connect2id server is configured for open registration.
-
-
Method Detail
-
values
public static AuthorizationCredentialType[] 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 (AuthorizationCredentialType c : AuthorizationCredentialType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorizationCredentialType 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
-
-