public class ClientSecretBasic extends java.lang.Object implements ClientAuthentication
Implementation of the client authentication method ‘client_secret_basic’.
ClientAuthentication.UnsupportedAuthenticationMethod| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME
Name of this authentication method.
|
| Constructor and Description |
|---|
ClientSecretBasic(java.lang.String clientSecret)
Creates a
ClientAuthentication which will use the client authentication method
client_secret_basic. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getRequestHeaders(java.lang.String clientId)
Constructs any extra parameters necessary to include in the request headers for the client
authentication.
|
java.util.Map<java.lang.String,java.lang.String> |
getRequestParameters(java.lang.String clientId)
Constructs any extra parameters necessary to include in the request body for the client
authentication.
|
public ClientSecretBasic(@NonNull
java.lang.String clientSecret)
Creates a ClientAuthentication which will use the client authentication method
client_secret_basic.
public final java.util.Map<java.lang.String,java.lang.String> getRequestHeaders(@NonNull
java.lang.String clientId)
ClientAuthenticationConstructs any extra parameters necessary to include in the request headers for the client authentication.
getRequestHeaders in interface ClientAuthenticationpublic final java.util.Map<java.lang.String,java.lang.String> getRequestParameters(@NonNull
java.lang.String clientId)
ClientAuthenticationConstructs any extra parameters necessary to include in the request body for the client authentication.
getRequestParameters in interface ClientAuthentication