Package com.okta.sdk.impl.oauth2
Interface AccessTokenRetrieverService
- All Known Implementing Classes:
AccessTokenRetrieverServiceImpl
public interface AccessTokenRetrieverService
Abstraction for OAuth2 access token retrieval service function.
- Since:
- 1.6.0
-
Method Summary
Modifier and TypeMethodDescriptionObtain OAuth2 access token from Authorization Server endpoint.
-
Method Details
-
getOAuth2AccessToken
OAuth2AccessToken getOAuth2AccessToken() throws IOException, InvalidKeyException, OAuth2TokenRetrieverExceptionObtain OAuth2 access token from Authorization Server endpoint.- Returns:
OAuth2AccessToken
- Throws:
IOException
- if problems are encountered extracting the input private keyInvalidKeyException
- if supplied private key is invalidOAuth2TokenRetrieverException
- if token could not be retrieved
-