Package org.forgerock.http.apache
Class NoAuthenticationStrategy
java.lang.Object
org.forgerock.http.apache.NoAuthenticationStrategy
- All Implemented Interfaces:
org.apache.http.client.AuthenticationStrategy
public final class NoAuthenticationStrategy
extends Object
implements org.apache.http.client.AuthenticationStrategy
An authentication strategy that never performs authentication.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.http.client.AuthenticationStrategy
AnAuthenticationStrategy
singleton instance that never performs authentication. -
Method Summary
Modifier and TypeMethodDescriptionvoid
authFailed
(org.apache.http.HttpHost host, org.apache.http.auth.AuthScheme authScheme, org.apache.http.protocol.HttpContext context) void
authSucceeded
(org.apache.http.HttpHost host, org.apache.http.auth.AuthScheme authScheme, org.apache.http.protocol.HttpContext context) getChallenges
(org.apache.http.HttpHost host, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) boolean
isAuthenticationRequested
(org.apache.http.HttpHost host, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) Queue<org.apache.http.auth.AuthOption>
select
(Map<String, org.apache.http.Header> challenges, org.apache.http.HttpHost host, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
-
Field Details
-
INSTANCE
AnAuthenticationStrategy
singleton instance that never performs authentication.
-
-
Method Details
-
authFailed
public void authFailed(org.apache.http.HttpHost host, org.apache.http.auth.AuthScheme authScheme, org.apache.http.protocol.HttpContext context) - Specified by:
authFailed
in interfaceorg.apache.http.client.AuthenticationStrategy
-
authSucceeded
public void authSucceeded(org.apache.http.HttpHost host, org.apache.http.auth.AuthScheme authScheme, org.apache.http.protocol.HttpContext context) - Specified by:
authSucceeded
in interfaceorg.apache.http.client.AuthenticationStrategy
-
getChallenges
public Map<String,org.apache.http.Header> getChallenges(org.apache.http.HttpHost host, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.auth.MalformedChallengeException - Specified by:
getChallenges
in interfaceorg.apache.http.client.AuthenticationStrategy
- Throws:
org.apache.http.auth.MalformedChallengeException
-
isAuthenticationRequested
public boolean isAuthenticationRequested(org.apache.http.HttpHost host, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) - Specified by:
isAuthenticationRequested
in interfaceorg.apache.http.client.AuthenticationStrategy
-
select
public Queue<org.apache.http.auth.AuthOption> select(Map<String, org.apache.http.Header> challenges, org.apache.http.HttpHost host, 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
-