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
public abstract class PlainClientSecret extends ClientAuthentication
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
Constructors Modifier Constructor Description protected
PlainClientSecret(ClientAuthenticationMethod method, ClientID clientID, Secret secret)
Creates a new plain secret based client authentication.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Secret
getClientSecret()
Gets the client secret.-
Methods inherited from class com.nimbusds.oauth2.sdk.auth.ClientAuthentication
applyTo, getClientID, getMethod, parse
-
-
-
-
Constructor Detail
-
PlainClientSecret
protected PlainClientSecret(ClientAuthenticationMethod method, ClientID clientID, Secret secret)
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 Detail
-
getClientSecret
public Secret getClientSecret()
Gets the client secret.- Returns:
- The client secret.
-
-