public class OAuthAccessTokenManager extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
Constructor and Description |
---|
OAuthAccessTokenManager(String tokenEndpoint,
String scope,
CredentialFactory client_cf,
boolean useClientCredentialsGrant,
boolean authenticatedTokenRequest,
HttpSenderBase httpSender,
int expiry) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.client.methods.HttpRequestBase |
convertToApacheHttpRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest) |
protected com.nimbusds.oauth2.sdk.TokenRequest |
createRequest(org.apache.http.auth.Credentials credentials) |
String |
getAccessToken(org.apache.http.auth.Credentials credentials,
boolean forceRefresh) |
void |
retrieveAccessToken(org.apache.http.auth.Credentials credentials) |
public OAuthAccessTokenManager(String tokenEndpoint, String scope, CredentialFactory client_cf, boolean useClientCredentialsGrant, boolean authenticatedTokenRequest, HttpSenderBase httpSender, int expiry) throws HttpAuthenticationException
HttpAuthenticationException
public void retrieveAccessToken(org.apache.http.auth.Credentials credentials) throws HttpAuthenticationException
HttpAuthenticationException
protected com.nimbusds.oauth2.sdk.TokenRequest createRequest(org.apache.http.auth.Credentials credentials)
protected org.apache.http.client.methods.HttpRequestBase convertToApacheHttpRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest) throws HttpAuthenticationException
HttpAuthenticationException
public String getAccessToken(org.apache.http.auth.Credentials credentials, boolean forceRefresh) throws HttpAuthenticationException
HttpAuthenticationException
Copyright © 2023 Frank!Framework. All rights reserved.