Package io.jans.as.model.common
Enum AuthenticationMethod
- java.lang.Object
-
- java.lang.Enum<AuthenticationMethod>
-
- io.jans.as.model.common.AuthenticationMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthenticationMethod>
public enum AuthenticationMethod extends Enum<AuthenticationMethod>
- Author:
- Javier Rojas Blum Date: 03.23.2012
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_TOKEN
Authenticates client by access token.CLIENT_SECRET_BASIC
Clients in possession of a client password authenticate with the Authorization Server using HTTP Basic authentication scheme.CLIENT_SECRET_JWT
Clients in possession of a client password create a JWT using the HMAC-SHA algorithm.CLIENT_SECRET_POST
Clients in possession of a client password authenticate with the Authorization Server by including the client credentials in the request body.NONE
The Client does not authenticate itself at the Token Endpoint, either because it uses only the Implicit Flow (and so does not use the Token Endpoint) or because it is a Public Client with no Client Secret or other authentication mechanism.PRIVATE_KEY_JWT
Clients that have registered a public key sign a JWT using the RSA algorithm if a RSA key was registered or the ECDSA algorithm if an Elliptic Curve key was registered.SELF_SIGNED_TLS_CLIENT_AUTH
Indicates that client authentication to the authorization server will occur using mutual TLS with the client utilizing a self- signed certificate.TLS_CLIENT_AUTH
Indicates that client authentication to the authorization server will occur with mutual TLS utilizing the PKI method of associating a certificate to a client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<AuthenticationMethod>
fromList(List<String> list)
static AuthenticationMethod
fromString(String param)
Returns the correspondingAuthenticationMethod
for an authentication method parameter.String
toString()
Returns a string representation of the object.static AuthenticationMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuthenticationMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT_SECRET_BASIC
public static final AuthenticationMethod CLIENT_SECRET_BASIC
Clients in possession of a client password authenticate with the Authorization Server using HTTP Basic authentication scheme. Default one if not client authentication is specified.
-
CLIENT_SECRET_POST
public static final AuthenticationMethod CLIENT_SECRET_POST
Clients in possession of a client password authenticate with the Authorization Server by including the client credentials in the request body.
-
CLIENT_SECRET_JWT
public static final AuthenticationMethod CLIENT_SECRET_JWT
Clients in possession of a client password create a JWT using the HMAC-SHA algorithm. The HMAC (Hash-based Message Authentication Code) is calculated using the client_secret as the shared key.
-
PRIVATE_KEY_JWT
public static final AuthenticationMethod PRIVATE_KEY_JWT
Clients that have registered a public key sign a JWT using the RSA algorithm if a RSA key was registered or the ECDSA algorithm if an Elliptic Curve key was registered.
-
ACCESS_TOKEN
public static final AuthenticationMethod ACCESS_TOKEN
Authenticates client by access token.
-
TLS_CLIENT_AUTH
public static final AuthenticationMethod TLS_CLIENT_AUTH
Indicates that client authentication to the authorization server will occur with mutual TLS utilizing the PKI method of associating a certificate to a client.
-
SELF_SIGNED_TLS_CLIENT_AUTH
public static final AuthenticationMethod SELF_SIGNED_TLS_CLIENT_AUTH
Indicates that client authentication to the authorization server will occur using mutual TLS with the client utilizing a self- signed certificate.
-
NONE
public static final AuthenticationMethod NONE
The Client does not authenticate itself at the Token Endpoint, either because it uses only the Implicit Flow (and so does not use the Token Endpoint) or because it is a Public Client with no Client Secret or other authentication mechanism.
-
-
Method Detail
-
values
public static AuthenticationMethod[] 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 (AuthenticationMethod c : AuthenticationMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthenticationMethod 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
-
fromString
public static AuthenticationMethod fromString(String param)
Returns the correspondingAuthenticationMethod
for an authentication method parameter.- Parameters:
param
- The parameter.- Returns:
- The corresponding authentication method if found, otherwise
null
.
-
fromList
public static List<AuthenticationMethod> fromList(List<String> list)
-
toString
public String toString()
Returns a string representation of the object. In this case the parameter name for the authentication method parameter.- Overrides:
toString
in classEnum<AuthenticationMethod>
-
-