public class OAuth2ClientCredentials extends Object implements ClientCredentials<OAuth2AccessToken>
Constructor and Description |
---|
OAuth2ClientCredentials(AccessTokenRetrieverService accessTokenRetrieverService) |
Modifier and Type | Method and Description |
---|---|
AccessTokenRetrieverService |
getAccessTokenRetrieverService() |
OAuth2AccessToken |
getCredentials()
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.
|
void |
setCredentials(OAuth2AccessToken oAuth2AccessToken) |
String |
toString() |
public OAuth2ClientCredentials(AccessTokenRetrieverService accessTokenRetrieverService)
public OAuth2AccessToken getCredentials()
ClientCredentials
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.
getCredentials
in interface ClientCredentials<OAuth2AccessToken>
public void setCredentials(OAuth2AccessToken oAuth2AccessToken)
public AccessTokenRetrieverService getAccessTokenRetrieverService()
Copyright © 2017–2023 Okta. All rights reserved.