Package com.okta.sdk.impl.oauth2
Class AccessTokenRetrieverServiceImpl
java.lang.Object
com.okta.sdk.impl.oauth2.AccessTokenRetrieverServiceImpl
- All Implemented Interfaces:
 AccessTokenRetrieverService
Implementation of 
AccessTokenRetrieverService interface.
 This has logic to fetch OAuth2 access token from the Authorization server endpoint.- Since:
 - 1.6.0
 
- 
Constructor Summary
ConstructorsConstructorDescriptionAccessTokenRetrieverServiceImpl(ClientConfiguration apiClientConfiguration, ApiClient apiClient)  - 
Method Summary
Modifier and TypeMethodDescriptionObtain OAuth2 access token from Authorization Server endpoint. 
- 
Constructor Details
- 
AccessTokenRetrieverServiceImpl
public AccessTokenRetrieverServiceImpl(ClientConfiguration apiClientConfiguration, ApiClient apiClient)  
 - 
 - 
Method Details
- 
getOAuth2AccessToken
public OAuth2AccessToken getOAuth2AccessToken() throws IOException, InvalidKeyException, OAuth2TokenRetrieverExceptionObtain OAuth2 access token from Authorization Server endpoint.- Specified by:
 getOAuth2AccessTokenin interfaceAccessTokenRetrieverService- 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
 
 -