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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) 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)
-
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 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:
isAuthenticationRequested
in 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:
getChallenges
in 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:
authSucceeded
in 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:
authFailed
in interfaceorg.apache.http.client.AuthenticationStrategy
-