Package net.openid.appauth
Class ClientSecretPost
- java.lang.Object
-
- net.openid.appauth.ClientSecretPost
-
- All Implemented Interfaces:
ClientAuthentication
public class ClientSecretPost extends Object implements ClientAuthentication
Implementation of the client authentication method ‘client_secret_post’.- 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
-
-
Constructor Summary
Constructors Constructor Description ClientSecretPost(String clientSecret)
Creates aClientAuthentication
which will use the client authentication methodclient_secret_post
.
-
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:
“OpenID Connect Core 1.0, Section 9 https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.9”
, Constant Field Values
-
-
Constructor Detail
-
ClientSecretPost
public ClientSecretPost(@NonNull String clientSecret)
Creates aClientAuthentication
which will use the client authentication methodclient_secret_post
.
-
-
Method Detail
-
getRequestParameters
public final Map<String,String> getRequestParameters(@NonNull String clientId)
Description copied from interface:ClientAuthentication
Constructs any extra parameters necessary to include in the request body for the client authentication.- Specified by:
getRequestParameters
in interfaceClientAuthentication
-
getRequestHeaders
public final Map<String,String> getRequestHeaders(@NonNull String clientId)
Description copied from interface:ClientAuthentication
Constructs any extra parameters necessary to include in the request headers for the client authentication.- Specified by:
getRequestHeaders
in interfaceClientAuthentication
-
-