Class OAuthPreferringAuthenticationStrategy

java.lang.Object
org.apache.http.impl.client.TargetAuthenticationStrategy
org.frankframework.http.authentication.OAuthPreferringAuthenticationStrategy
All Implemented Interfaces:
org.apache.http.client.AuthenticationStrategy

public class OAuthPreferringAuthenticationStrategy extends org.apache.http.impl.client.TargetAuthenticationStrategy
OAuth prefering AuthenticationStrategy.
Author:
Gerrit van Brakel
  • Field Summary

    Fields inherited from class org.apache.http.impl.client.TargetAuthenticationStrategy

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    authFailed(org.apache.http.HttpHost arg0, org.apache.http.auth.AuthScheme arg1, org.apache.http.protocol.HttpContext arg2)
     
    void
    authSucceeded(org.apache.http.HttpHost arg0, org.apache.http.auth.AuthScheme arg1, org.apache.http.protocol.HttpContext arg2)
     
    Map<String,org.apache.http.Header>
    getChallenges(org.apache.http.HttpHost arg0, org.apache.http.HttpResponse arg1, org.apache.http.protocol.HttpContext arg2)
     
    boolean
    isAuthenticationRequested(org.apache.http.HttpHost arg0, org.apache.http.HttpResponse arg1, org.apache.http.protocol.HttpContext arg2)
     
    protected boolean
    isCachable(org.apache.http.auth.AuthScheme arg0)
     
    Queue<org.apache.http.auth.AuthOption>
    select(Map<String,org.apache.http.Header> challenges, org.apache.http.HttpHost authhost, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OAuthPreferringAuthenticationStrategy

      public OAuthPreferringAuthenticationStrategy()
  • Method Details

    • select

      public Queue<org.apache.http.auth.AuthOption> select(Map<String,org.apache.http.Header> challenges, org.apache.http.HttpHost authhost, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.auth.MalformedChallengeException
      Specified by:
      select in interface org.apache.http.client.AuthenticationStrategy
      Throws:
      org.apache.http.auth.MalformedChallengeException
    • isAuthenticationRequested

      public boolean isAuthenticationRequested(org.apache.http.HttpHost arg0, org.apache.http.HttpResponse arg1, org.apache.http.protocol.HttpContext arg2)
      Specified by:
      isAuthenticationRequested in interface org.apache.http.client.AuthenticationStrategy
    • getChallenges

      public Map<String,org.apache.http.Header> getChallenges(org.apache.http.HttpHost arg0, org.apache.http.HttpResponse arg1, org.apache.http.protocol.HttpContext arg2) throws org.apache.http.auth.MalformedChallengeException
      Specified by:
      getChallenges in interface org.apache.http.client.AuthenticationStrategy
      Throws:
      org.apache.http.auth.MalformedChallengeException
    • authSucceeded

      public void authSucceeded(org.apache.http.HttpHost arg0, org.apache.http.auth.AuthScheme arg1, org.apache.http.protocol.HttpContext arg2)
      Specified by:
      authSucceeded in interface org.apache.http.client.AuthenticationStrategy
    • isCachable

      protected boolean isCachable(org.apache.http.auth.AuthScheme arg0)
    • authFailed

      public void authFailed(org.apache.http.HttpHost arg0, org.apache.http.auth.AuthScheme arg1, org.apache.http.protocol.HttpContext arg2)
      Specified by:
      authFailed in interface org.apache.http.client.AuthenticationStrategy