Class OAuthAuthenticationScheme

java.lang.Object
org.apache.http.impl.auth.AuthSchemeBase
org.apache.http.impl.auth.RFC2617Scheme
org.apache.http.impl.auth.BasicScheme
org.frankframework.http.authentication.OAuthAuthenticationScheme
All Implemented Interfaces:
Serializable, org.apache.http.auth.AuthScheme, org.apache.http.auth.ContextAwareAuthScheme

public class OAuthAuthenticationScheme extends org.apache.http.impl.auth.BasicScheme
HttpClient AuthScheme that uses OAuthAccessTokenManager to obtain an access token (via Client Credentials flow).
Author:
Gerrit van Brakel
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class org.apache.http.impl.auth.AuthSchemeBase

    challengeState
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    OAuthAuthenticationScheme(boolean forceRefresh)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.http.Header
    authenticate(org.apache.http.auth.Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
     
     
     

    Methods inherited from class org.apache.http.impl.auth.BasicScheme

    authenticate, authenticate, isComplete, isConnectionBased, processChallenge

    Methods inherited from class org.apache.http.impl.auth.RFC2617Scheme

    getCredentialsCharset, getParameter, getParameters, getRealm, parseChallenge

    Methods inherited from class org.apache.http.impl.auth.AuthSchemeBase

    getChallengeState, isProxy

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • OAuthAuthenticationScheme

      public OAuthAuthenticationScheme()
    • OAuthAuthenticationScheme

      public OAuthAuthenticationScheme(boolean forceRefresh)
  • Method Details

    • getSchemeName

      public String getSchemeName()
      Specified by:
      getSchemeName in interface org.apache.http.auth.AuthScheme
      Overrides:
      getSchemeName in class org.apache.http.impl.auth.BasicScheme
    • authenticate

      public org.apache.http.Header authenticate(org.apache.http.auth.Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.auth.AuthenticationException
      Specified by:
      authenticate in interface org.apache.http.auth.ContextAwareAuthScheme
      Overrides:
      authenticate in class org.apache.http.impl.auth.BasicScheme
      Throws:
      org.apache.http.auth.AuthenticationException
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.http.impl.auth.BasicScheme