public class NoClientAuthentication extends 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 String |
NAME
Name of this authentication method.
|
| 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 static final NoClientAuthentication INSTANCE
The default (singleton) instance of NoClientAuthentication.
public Map<String,String> getRequestHeaders(@NonNull String clientId)
Constructs any extra parameters necessary to include in the request headers for the client authentication.
getRequestHeaders in interface ClientAuthenticationnull.public Map<String,String> getRequestParameters(@NonNull 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