Package com.okta.sdk.impl.oauth2
Class OAuth2ClientCredentials
java.lang.Object
com.okta.sdk.impl.oauth2.OAuth2ClientCredentials
- All Implemented Interfaces:
ClientCredentials<OAuth2AccessToken>
This implementation represents client credentials specific to OAuth2 Authentication scheme.
- Since:
- 1.6.0
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2ClientCredentials
(AccessTokenRetrieverService accessTokenRetrieverService) -
Method Summary
Modifier and TypeMethodDescriptionReturns the client credentials plaintext secret - a very secret, very private value that should never be disclosed to anyone other than the actual account holder.void
setCredentials
(OAuth2AccessToken oAuth2AccessToken) toString()
-
Constructor Details
-
OAuth2ClientCredentials
-
-
Method Details
-
getCredentials
Description copied from interface:ClientCredentials
Returns the client credentials plaintext secret - a very secret, very private value that should never be disclosed to anyone other than the actual account holder. The secret value is mostly used for computing HMAC digests, but can also be used as a password for password-based key derivation and encryption.Security Notice
Okta SDKs automatically encrypt this value at rest and in SDK cache to prevent plaintext access. The plaintext value is only available by calling this method, which returns the plaintext (unencrypted) value. Please use this method with caution and only when necessary to ensure your API users' secrets remain secure.
- Specified by:
getCredentials
in interfaceClientCredentials<OAuth2AccessToken>
- Returns:
- the client credentials plaintext secret
-
setCredentials
-
getAccessTokenRetrieverService
-
toString
-