Top Fields Constructors Methods
org.eclipse.jetty.client.internal

public Class HttpAuthenticationStore

extends Object
implements AuthenticationStore
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.client.AuthenticationStore
Imports
java.net.URI, java.util.List, .Map, java.util.concurrent.ConcurrentHashMap, .CopyOnWriteArrayList, org.eclipse.jetty.client.AbstractAuthentication, .Authentication, .AuthenticationStore

Field Summary

Modifier and TypeField and Description
private final List<Authentication>
private final Map<URI, Authentication.Result>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public Authentication
findAuthentication(String
the Authentication type such as "Basic" or "Digest"
type
,
URI
the request URI
uri
,
String
the authentication realm
realm
)

Implements org.eclipse.jetty.client.AuthenticationStore.findAuthentication.

Returns the authentication that matches the given type (for example, "Basic" or "Digest"), the given request URI and the given realm.
public Authentication.Result
findAuthenticationResult(URI
the request URI
uri
)

Implements org.eclipse.jetty.client.AuthenticationStore.findAuthenticationResult.

Returns an Authentication.Result that matches the given URI, or null if no Authentication.Results match the given URI.
public boolean
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authenticationsback to summary
private final List<Authentication> authentications
resultsback to summary
private final Map<URI, Authentication.Result> results

Constructor Detail

HttpAuthenticationStoreback to summary
public HttpAuthenticationStore()

Method Detail

addAuthenticationback to summary
public void addAuthentication(Authentication authentication)

Implements org.eclipse.jetty.client.AuthenticationStore.addAuthentication.

Doc from org.eclipse.jetty.client.AuthenticationStore.addAuthentication.

Add the Authentication to add.

Parameters
authentication:Authentication

the Authentication to add

Annotations
@Override
addAuthenticationResultback to summary
public void addAuthenticationResult(Authentication.Result result)

Implements org.eclipse.jetty.client.AuthenticationStore.addAuthenticationResult.

Doc from org.eclipse.jetty.client.AuthenticationStore.addAuthenticationResult.

Add the Authentication.Result to add.

Parameters
result:Authentication.Result

the Authentication.Result to add

Annotations
@Override
clearAuthenticationResultsback to summary
public void clearAuthenticationResults()

Implements org.eclipse.jetty.client.AuthenticationStore.clearAuthenticationResults.

Doc from org.eclipse.jetty.client.AuthenticationStore.clearAuthenticationResults.

Removes all authentication results stored

Annotations
@Override
clearAuthenticationsback to summary
public void clearAuthentications()

Implements org.eclipse.jetty.client.AuthenticationStore.clearAuthentications.

Doc from org.eclipse.jetty.client.AuthenticationStore.clearAuthentications.

Removes all Authentications stored

Annotations
@Override
findAuthenticationback to summary
public Authentication findAuthentication(String type, URI uri, String realm)

Implements org.eclipse.jetty.client.AuthenticationStore.findAuthentication.

Doc from org.eclipse.jetty.client.AuthenticationStore.findAuthentication.

Returns the authentication that matches the given type (for example, "Basic" or "Digest"), the given request URI and the given realm. If no such authentication can be found, returns null.

Parameters
type:String

the Authentication type such as "Basic" or "Digest"

uri:URI

the request URI

realm:String

the authentication realm

Returns:Authentication

the authentication that matches the given parameters, or null

Annotations
@Override
findAuthenticationResultback to summary
public Authentication.Result findAuthenticationResult(URI uri)

Implements org.eclipse.jetty.client.AuthenticationStore.findAuthenticationResult.

Doc from org.eclipse.jetty.client.AuthenticationStore.findAuthenticationResult.

Returns an Authentication.Result that matches the given URI, or null if no Authentication.Results match the given URI.

Parameters
uri:URI

the request URI

Returns:Authentication.Result

the Authentication.Result that matches the given URI, or null

Annotations
@Override
hasAuthenticationResultsback to summary
public boolean hasAuthenticationResults()

Overrides default org.eclipse.jetty.client.AuthenticationStore.hasAuthenticationResults.

Returns:boolean

Doc from org.eclipse.jetty.client.AuthenticationStore.hasAuthenticationResults.

false if there are no stored authentication results, true if there may be some.

Annotations
@Override
removeAuthenticationback to summary
public void removeAuthentication(Authentication authentication)

Implements org.eclipse.jetty.client.AuthenticationStore.removeAuthentication.

Doc from org.eclipse.jetty.client.AuthenticationStore.removeAuthentication.

Remove an Authentication.

Parameters
authentication:Authentication

the Authentication to remove

Annotations
@Override
removeAuthenticationResultback to summary
public void removeAuthenticationResult(Authentication.Result result)

Implements org.eclipse.jetty.client.AuthenticationStore.removeAuthenticationResult.

Doc from org.eclipse.jetty.client.AuthenticationStore.removeAuthenticationResult.

Remove and Authentication Result

Parameters
result:Authentication.Result

the Authentication.Result to remove

Annotations
@Override