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 -
Method Summary
Modifier and TypeMethodDescriptionvoidauthFailed(org.apache.http.HttpHost arg0, org.apache.http.auth.AuthScheme arg1, org.apache.http.protocol.HttpContext arg2) voidauthSucceeded(org.apache.http.HttpHost arg0, org.apache.http.auth.AuthScheme arg1, org.apache.http.protocol.HttpContext arg2) getChallenges(org.apache.http.HttpHost arg0, org.apache.http.HttpResponse arg1, org.apache.http.protocol.HttpContext arg2) booleanisAuthenticationRequested(org.apache.http.HttpHost arg0, org.apache.http.HttpResponse arg1, org.apache.http.protocol.HttpContext arg2) protected booleanisCachable(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)
-
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:
selectin interfaceorg.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:
isAuthenticationRequestedin interfaceorg.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:
getChallengesin interfaceorg.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:
authSucceededin interfaceorg.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:
authFailedin interfaceorg.apache.http.client.AuthenticationStrategy
-