Class AbstractOauthAuthenticator
java.lang.Object
org.frankframework.http.authentication.AbstractOauthAuthenticator
- All Implemented Interfaces:
IOauthAuthenticator
- Direct Known Subclasses:
AbstractClientCredentials
,AbstractResourceOwnerPasswordCredentials
,SamlAssertionOauth
-
Field Summary
Modifier and TypeFieldDescriptionprotected final URI
protected final int
protected final AbstractHttpSession
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.client.methods.HttpEntityEnclosingRequestBase
createPostRequestWithForm
(URI uri, List<org.apache.http.NameValuePair> formParameters) protected abstract org.apache.http.client.methods.HttpEntityEnclosingRequestBase
createRequest
(org.apache.http.auth.Credentials credentials, List<org.apache.http.NameValuePair> parameters) final String
getOrRefreshAccessToken
(org.apache.http.auth.Credentials credentials, boolean forceRefresh) protected org.apache.http.message.BasicHeader
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.http.authentication.IOauthAuthenticator
configure
-
Field Details
-
session
-
authorizationEndpoint
-
overwriteExpiryMs
protected final int overwriteExpiryMs
-
-
Method Details
-
getScopeHeader
@Nullable protected org.apache.http.message.BasicHeader getScopeHeader() -
createPostRequestWithForm
protected org.apache.http.client.methods.HttpEntityEnclosingRequestBase createPostRequestWithForm(URI uri, List<org.apache.http.NameValuePair> formParameters) throws HttpAuthenticationException - Throws:
HttpAuthenticationException
-
createRequest
protected abstract org.apache.http.client.methods.HttpEntityEnclosingRequestBase createRequest(org.apache.http.auth.Credentials credentials, List<org.apache.http.NameValuePair> parameters) throws HttpAuthenticationException - Throws:
HttpAuthenticationException
-
getOrRefreshAccessToken
public final String getOrRefreshAccessToken(org.apache.http.auth.Credentials credentials, boolean forceRefresh) throws HttpAuthenticationException - Specified by:
getOrRefreshAccessToken
in interfaceIOauthAuthenticator
- Throws:
HttpAuthenticationException
-