Package net.openid.appauth
Class NoClientAuthentication
- java.lang.Object
-
- net.openid.appauth.NoClientAuthentication
-
- All Implemented Interfaces:
ClientAuthentication
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)
.- See Also:
“OpenID Connect Core 1.0, Section 9 https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.9”
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.openid.appauth.ClientAuthentication
ClientAuthentication.UnsupportedAuthenticationMethod
-
-
Field Summary
Fields Modifier and Type Field Description static NoClientAuthentication
INSTANCE
The default (singleton) instance ofNoClientAuthentication
.static String
NAME
Name of this authentication method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
NAME
public static final String NAME
Name of this authentication method.- See Also:
- Constant Field Values
-
INSTANCE
public static final NoClientAuthentication INSTANCE
The default (singleton) instance ofNoClientAuthentication
.
-
-
Method Detail
-
getRequestHeaders
public Map<String,String> getRequestHeaders(@NonNull String clientId)
Constructs any extra parameters necessary to include in the request headers for the client authentication.- Specified by:
getRequestHeaders
in interfaceClientAuthentication
- Returns:
- always
null
.
-
getRequestParameters
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.
- Specified by:
getRequestParameters
in interfaceClientAuthentication
-
-