public class NoClientAuthentication extends java.lang.Object implements ClientAuthentication
Implementation of the client authentication method ‘none’. This is the default,
if no other authentication method is specified when calling
AuthorizationService.performTokenRequest(TokenRequest,
AuthorizationService.TokenResponseCallback).
ClientAuthentication.UnsupportedAuthenticationMethod| Modifier and Type | Field and Description |
|---|---|
static NoClientAuthentication |
INSTANCE
The default (singleton) instance of
NoClientAuthentication. |
static java.lang.String |
NAME
Name of this authentication method.
|
| 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 static final java.lang.String NAME
Name of this authentication method.
public static final NoClientAuthentication INSTANCE
The default (singleton) instance of NoClientAuthentication.
public java.util.Map<java.lang.String,java.lang.String> getRequestHeaders(@NonNull
java.lang.String clientId)
Constructs any extra parameters necessary to include in the request headers for the client authentication.
getRequestHeaders in interface ClientAuthenticationnull.public java.util.Map<java.lang.String,java.lang.String> getRequestParameters(@NonNull
java.lang.String clientId)
Constructs any extra parameters necessary to include in the request body for the client authentication.
Where no alternative form of client authentication is used, the client_id is simply sent as a client identity assertion.
getRequestParameters in interface ClientAuthentication