Class AbstractOauthAuthenticator

java.lang.Object
org.frankframework.http.authentication.AbstractOauthAuthenticator
All Implemented Interfaces:
IOauthAuthenticator
Direct Known Subclasses:
AbstractClientCredentials, AbstractResourceOwnerPasswordCredentials, PrivateKeyJwtAuthenticator, SamlAssertionOauth

public abstract class AbstractOauthAuthenticator extends Object implements IOauthAuthenticator
  • Field Details

    • session

      protected final AbstractHttpSession session
    • authorizationEndpoint

      protected final URI authorizationEndpoint
    • overwriteExpiryMs

      protected final int overwriteExpiryMs
    • username

      protected final String username
    • password

      protected final String password
    • clientId

      protected final String clientId
    • clientSecret

      protected final String clientSecret
  • Method Details

    • getScopeHeader

      protected @Nullable org.apache.http.message.BasicHeader getScopeHeader()
    • createPostRequestWithForm

      protected org.apache.http.client.methods.HttpEntityEnclosingRequestBase createPostRequestWithForm(URI uri, List<org.apache.http.NameValuePair> formParameters)
    • 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 interface IOauthAuthenticator
      Throws:
      HttpAuthenticationException