public class AccessTokenRetrieverServiceImpl extends Object implements AccessTokenRetrieverService
AccessTokenRetrieverService
interface.
This has logic to fetch OAuth2 access token from the Authorization server endpoint.Constructor and Description |
---|
AccessTokenRetrieverServiceImpl(ClientConfiguration apiClientConfiguration,
ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
getOAuth2AccessToken()
Obtain OAuth2 access token from Authorization Server endpoint.
|
public AccessTokenRetrieverServiceImpl(ClientConfiguration apiClientConfiguration, ApiClient apiClient)
public OAuth2AccessToken getOAuth2AccessToken() throws IOException, InvalidKeyException, OAuth2TokenRetrieverException
getOAuth2AccessToken
in interface AccessTokenRetrieverService
OAuth2AccessToken
IOException
- if problems are encountered extracting the input private keyInvalidKeyException
- if supplied private key is invalidOAuth2TokenRetrieverException
- if token could not be retrievedCopyright © 2017–2023 Okta. All rights reserved.