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