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

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.http.client.AuthenticationStrategy
    An AuthenticationStrategy singleton instance that never performs authentication.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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)
     
    Map<String,org.apache.http.Header>
    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)
     

    Methods inherited from class java.lang.Object

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

    • INSTANCE

      public static final org.apache.http.client.AuthenticationStrategy INSTANCE
      An AuthenticationStrategy 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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.apache.http.client.AuthenticationStrategy
      Throws:
      org.apache.http.auth.MalformedChallengeException