Package com.nimbusds.oauth2.sdk.auth
Class PlainClientSecret
java.lang.Object
com.nimbusds.oauth2.sdk.auth.ClientAuthentication
com.nimbusds.oauth2.sdk.auth.PlainClientSecret
- Direct Known Subclasses:
ClientSecretBasic
,ClientSecretPost
Base abstract class for plain secret based client authentication at the
Token endpoint.
Related specifications:
- OAuth 2.0 (RFC 6749), sections 2.3.1 and 3.2.1.
- OpenID Connect Core 1.0, section 9.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PlainClientSecret
(ClientAuthenticationMethod method, ClientID clientID, Secret secret) Creates a new plain secret based client authentication. -
Method Summary
Methods inherited from class com.nimbusds.oauth2.sdk.auth.ClientAuthentication
applyTo, getClientID, getFormParameterNames, getMethod, parse
-
Constructor Details
-
PlainClientSecret
Creates a new plain secret based client authentication.- Parameters:
method
- The client authentication method. Must not benull
.clientID
- The client identifier. Must not benull
.secret
- The client secret. Must not benull
.
-
-
Method Details
-
getClientSecret
Gets the client secret.- Returns:
- The client secret.
-