Package org.eclipse.jetty.client
Class HttpAuthenticationStore
java.lang.Object
org.eclipse.jetty.client.HttpAuthenticationStore
- All Implemented Interfaces:
AuthenticationStore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAuthentication
(Authentication authentication) void
void
Removes all authentication results storedvoid
Removes allAuthentication
s storedfindAuthentication
(String type, URI uri, String realm) Returns the authentication that matches the given type (for example, "Basic" or "Digest"), the given request URI and the given realm.Returns anAuthentication.Result
that matches the given URI, or null if noAuthentication.Result
s match the given URI.boolean
void
removeAuthentication
(Authentication authentication) void
-
Constructor Details
-
HttpAuthenticationStore
public HttpAuthenticationStore()
-
-
Method Details
-
addAuthentication
- Specified by:
addAuthentication
in interfaceAuthenticationStore
- Parameters:
authentication
- theAuthentication
to add
-
removeAuthentication
- Specified by:
removeAuthentication
in interfaceAuthenticationStore
- Parameters:
authentication
- theAuthentication
to remove
-
clearAuthentications
public void clearAuthentications()Description copied from interface:AuthenticationStore
Removes allAuthentication
s stored- Specified by:
clearAuthentications
in interfaceAuthenticationStore
-
findAuthentication
Description copied from interface:AuthenticationStore
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.- Specified by:
findAuthentication
in interfaceAuthenticationStore
- Parameters:
type
- theAuthentication
type such as "Basic" or "Digest"uri
- the request URIrealm
- the authentication realm- Returns:
- the authentication that matches the given parameters, or null
-
addAuthenticationResult
- Specified by:
addAuthenticationResult
in interfaceAuthenticationStore
- Parameters:
result
- theAuthentication.Result
to add
-
removeAuthenticationResult
- Specified by:
removeAuthenticationResult
in interfaceAuthenticationStore
- Parameters:
result
- theAuthentication.Result
to remove
-
clearAuthenticationResults
public void clearAuthenticationResults()Description copied from interface:AuthenticationStore
Removes all authentication results stored- Specified by:
clearAuthenticationResults
in interfaceAuthenticationStore
-
findAuthenticationResult
Description copied from interface:AuthenticationStore
Returns anAuthentication.Result
that matches the given URI, or null if noAuthentication.Result
s match the given URI.- Specified by:
findAuthenticationResult
in interfaceAuthenticationStore
- Parameters:
uri
- the request URI- Returns:
- the
Authentication.Result
that matches the given URI, or null
-
hasAuthenticationResults
public boolean hasAuthenticationResults()- Specified by:
hasAuthenticationResults
in interfaceAuthenticationStore
- Returns:
- false if there are no stored authentication results, true if there may be some.
-