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.AuthenticationStrategyAnAuthenticationStrategysingleton instance that never performs authentication. -
Method Summary
Modifier and TypeMethodDescriptionvoidauthFailed(org.apache.http.HttpHost host, org.apache.http.auth.AuthScheme authScheme, org.apache.http.protocol.HttpContext context) voidauthSucceeded(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) booleanisAuthenticationRequested(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
AnAuthenticationStrategysingleton 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:
authFailedin 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:
authSucceededin 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:
getChallengesin 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:
isAuthenticationRequestedin 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:
selectin interfaceorg.apache.http.client.AuthenticationStrategy- Throws:
org.apache.http.auth.MalformedChallengeException
-