@Immutable public final class ClientAuthenticationMethod extends Identifier
Constants are provided for four client authentication methods:
client_secret_basic
(default)
client_secret_post
client_secret_jwt
private_key_jwt
tls_client_auth
self_signed_tls_client_auth
none
Use the constructor to define a custom client authentication method.
Related specifications:
Modifier and Type | Field and Description |
---|---|
static ClientAuthenticationMethod |
CLIENT_SECRET_BASIC
Clients that have received a client secret from the authorisation
server authenticate with the authorisation server in accordance with
section 3.2.1 of OAuth 2.0 using HTTP Basic authentication.
|
static ClientAuthenticationMethod |
CLIENT_SECRET_JWT
Clients that have received a client secret from the authorisation
server, create a JWT using an HMAC SHA algorithm, such as HMAC
SHA-256.
|
static ClientAuthenticationMethod |
CLIENT_SECRET_POST
Clients that have received a client secret from the authorisation
server authenticate with the authorisation server in accordance with
section 3.2.1 of OAuth 2.0 by including the client credentials in
the request body.
|
static ClientAuthenticationMethod |
NONE
The client is a public client as defined in OAuth 2.0 and does not
have a client secret.
|
static ClientAuthenticationMethod |
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 (see JWA for the algorithm
identifiers).
|
static ClientAuthenticationMethod |
SELF_SIGNED_TLS_CLIENT_AUTH
Self-signed client TLS / X.509 certificate authentication.
|
static ClientAuthenticationMethod |
TLS_CLIENT_AUTH
Client TLS / X.509 certificate authentication using PKI.
|
DEFAULT_BYTE_LENGTH
Constructor and Description |
---|
ClientAuthenticationMethod(String value)
Creates a new client authentication method with the specified value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
static ClientAuthenticationMethod |
getDefault()
Gets the default client authentication method.
|
static ClientAuthenticationMethod |
parse(String value)
Parses a client authentication method from the specified value.
|
compareTo, getValue, hashCode, toJSONString, toString
public static final ClientAuthenticationMethod CLIENT_SECRET_BASIC
public static final ClientAuthenticationMethod CLIENT_SECRET_POST
public static final ClientAuthenticationMethod CLIENT_SECRET_JWT
public static final ClientAuthenticationMethod PRIVATE_KEY_JWT
public static final ClientAuthenticationMethod TLS_CLIENT_AUTH
public static final ClientAuthenticationMethod SELF_SIGNED_TLS_CLIENT_AUTH
public static final ClientAuthenticationMethod NONE
public ClientAuthenticationMethod(String value)
value
- The authentication method value. Must not be
null
or empty string.public static ClientAuthenticationMethod getDefault()
CLIENT_SECRET_BASIC
public static ClientAuthenticationMethod parse(String value)
value
- The authentication method value. Must not be
null
or empty string.public boolean equals(Object object)
equals
in class Identifier
Copyright © 2018 Connect2id Ltd.. All rights reserved.