Class SharingAuthCache

java.lang.Object
org.eclipse.aether.transport.http.SharingAuthCache
All Implemented Interfaces:
org.apache.http.client.AuthCache

final class SharingAuthCache extends Object implements org.apache.http.client.AuthCache
Auth scheme cache that upon clearing releases all cached schemes into a pool for future reuse by other requests, thereby reducing challenge-response roundtrips.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Map<org.apache.http.HttpHost,org.apache.http.auth.AuthScheme>
     
    private final LocalState
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.http.auth.AuthScheme
    get(org.apache.http.HttpHost host)
     
    void
    put(org.apache.http.HttpHost host, org.apache.http.auth.AuthScheme authScheme)
     
    void
    remove(org.apache.http.HttpHost host)
     
    private void
     
    private static org.apache.http.HttpHost
    toKey(org.apache.http.HttpHost host)
     
     

    Methods inherited from class java.lang.Object

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

    • state

      private final LocalState state
    • authSchemes

      private final Map<org.apache.http.HttpHost,org.apache.http.auth.AuthScheme> authSchemes
  • Constructor Details

    • SharingAuthCache

      SharingAuthCache(LocalState state)
  • Method Details

    • toKey

      private static org.apache.http.HttpHost toKey(org.apache.http.HttpHost host)
    • get

      public org.apache.http.auth.AuthScheme get(org.apache.http.HttpHost host)
      Specified by:
      get in interface org.apache.http.client.AuthCache
    • put

      public void put(org.apache.http.HttpHost host, org.apache.http.auth.AuthScheme authScheme)
      Specified by:
      put in interface org.apache.http.client.AuthCache
    • remove

      public void remove(org.apache.http.HttpHost host)
      Specified by:
      remove in interface org.apache.http.client.AuthCache
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.http.client.AuthCache
    • share

      private void share()
    • toString

      public String toString()
      Overrides:
      toString in class Object