Class OAuthAccessTokenManager
java.lang.Object
org.frankframework.http.authentication.OAuthAccessTokenManager
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOAuthAccessTokenManager
(String tokenEndpoint, String scope, CredentialFactory clientCF, boolean useClientCredentials, OAuthAccessTokenManager.AuthenticationType authType, AbstractHttpSession httpSession, int expiry) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.nimbusds.oauth2.sdk.http.HTTPResponse
convertFromApacheHttpResponse
(org.apache.http.client.methods.CloseableHttpResponse apacheHttpResponse) 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) getAccessToken
(org.apache.http.auth.Credentials credentials, boolean forceRefresh) void
retrieveAccessToken
(org.apache.http.auth.Credentials credentials)
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
OAuthAccessTokenManager
public OAuthAccessTokenManager(String tokenEndpoint, String scope, CredentialFactory clientCF, boolean useClientCredentials, OAuthAccessTokenManager.AuthenticationType authType, AbstractHttpSession httpSession, int expiry) throws HttpAuthenticationException - Throws:
HttpAuthenticationException
-
-
Method Details
-
retrieveAccessToken
public void retrieveAccessToken(org.apache.http.auth.Credentials credentials) throws HttpAuthenticationException - Throws:
HttpAuthenticationException
-
createRequest
protected com.nimbusds.oauth2.sdk.TokenRequest createRequest(org.apache.http.auth.Credentials credentials) -
convertToApacheHttpRequest
protected org.apache.http.client.methods.HttpRequestBase convertToApacheHttpRequest(com.nimbusds.oauth2.sdk.http.HTTPRequest httpRequest) throws HttpAuthenticationException - Throws:
HttpAuthenticationException
-
convertFromApacheHttpResponse
protected com.nimbusds.oauth2.sdk.http.HTTPResponse convertFromApacheHttpResponse(org.apache.http.client.methods.CloseableHttpResponse apacheHttpResponse) throws HttpAuthenticationException, UnsupportedOperationException, IOException -
getAccessToken
public String getAccessToken(org.apache.http.auth.Credentials credentials, boolean forceRefresh) throws HttpAuthenticationException - Throws:
HttpAuthenticationException
-