public class AccessTokenRetrieverServiceImpl extends java.lang.Object implements AccessTokenRetrieverService
AccessTokenRetrieverService interface.
This has logic to fetch OAuth2 access token from the Authorization server endpoint.| Constructor and Description |
|---|
AccessTokenRetrieverServiceImpl(ClientConfiguration apiClientConfiguration) |
AccessTokenRetrieverServiceImpl(ClientConfiguration apiClientConfiguration,
OAuth2TokenClient tokenClient) |
| Modifier and Type | Method and Description |
|---|---|
OAuth2AccessToken |
getOAuth2AccessToken()
Obtain OAuth2 access token from Authorization Server endpoint.
|
public AccessTokenRetrieverServiceImpl(ClientConfiguration apiClientConfiguration)
public AccessTokenRetrieverServiceImpl(ClientConfiguration apiClientConfiguration, OAuth2TokenClient tokenClient)
public OAuth2AccessToken getOAuth2AccessToken() throws java.io.IOException, java.security.InvalidKeyException, OAuth2TokenRetrieverException
getOAuth2AccessToken in interface AccessTokenRetrieverServiceOAuth2AccessTokenjava.io.IOException - if problems are encountered extracting the input private keyjava.security.InvalidKeyException - if supplied private key is invalidOAuth2TokenRetrieverException - if token could not be retrievedCopyright © 2017-2021 Okta. All Rights Reserved.