AuthCache. This implements
expects org.apache.hc.client5.http.auth.AuthScheme to be java.io.Serializable
in order to be cacheable.
Instances of this class are thread safe as of version 4.4.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final Map | |
| private final SchemePortResolver |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public AuthScheme | get(final HttpHost
the authentication authority. host)Implements org. |
| public AuthScheme | get(final HttpHost
the authentication authority. host, final String the path prefix (the path component up to the last segment separator).
Can be pathPrefix)null.Overrides default org. |
| private BasicAuthCache. | |
| public void | put(final HttpHost
the authentication authority. host, final AuthScheme the cacheable authentication state. authScheme)Implements org. |
| public void | put(final HttpHost
the authentication authority. host, final String the path prefix (the path component up to the last segment separator).
Can be pathPrefix, final AuthScheme null.the cacheable authentication state. authScheme)Overrides default org. |
| public void | remove(final HttpHost
the authentication authority. host)Implements org. |
| public void | remove(final HttpHost
the authentication authority. host, final String the path prefix (the path component up to the last segment separator).
Can be pathPrefix)null.Overrides default org. |
| public String |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| map | back to summary |
|---|---|
| private final Map<BasicAuthCache. | |
| schemePortResolver | back to summary |
|---|---|
| private final SchemePortResolver schemePortResolver | |
| BasicAuthCache | back to summary |
|---|---|
| public BasicAuthCache(final SchemePortResolver schemePortResolver) Default constructor.
| |
| BasicAuthCache | back to summary |
|---|---|
| public BasicAuthCache() | |
| clear | back to summary |
|---|---|
| public void clear() Implements org.
| |
| get | back to summary |
|---|---|
| public AuthScheme get(final HttpHost host) Implements org. Doc from org. Returns the authentication state with the given authentication scope from the cache if available.
| |
| get | back to summary |
|---|---|
| public AuthScheme get(final HttpHost host, final String pathPrefix) Overrides default org. Doc from org. Returns the authentication state with the given authentication scope from the cache if available.
| |
| key | back to summary |
|---|---|
| private BasicAuthCache. | |
| put | back to summary |
|---|---|
| public void put(final HttpHost host, final AuthScheme authScheme) Implements org. Doc from org. Stores the authentication state with the given authentication scope in the cache.
| |
| put | back to summary |
|---|---|
| public void put(final HttpHost host, final String pathPrefix, final AuthScheme authScheme) Overrides default org. Doc from org. Stores the authentication state with the given authentication scope in the cache.
| |
| remove | back to summary |
|---|---|
| public void remove(final HttpHost host) Implements org. Doc from org. Removes the authentication state with the given authentication scope from the cache if found. | |
| remove | back to summary |
|---|---|
| public void remove(final HttpHost host, final String pathPrefix) Overrides default org. Doc from org. Removes the authentication state with the given authentication scope from the cache if found. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final String | |
| pack-priv final int | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public String |
| host | back to summary |
|---|---|
| pack-priv final String host | |
| pathPrefix | back to summary |
|---|---|
| pack-priv final String pathPrefix | |
| port | back to summary |
|---|---|
| pack-priv final int port | |
| scheme | back to summary |
|---|---|
| pack-priv final String scheme | |
| Key | back to summary |
|---|---|
| pack-priv Key(final String scheme, final String host, final int port, final String pathPrefix) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |