Package org.eclipse.jetty.client.api
Interface AuthenticationStore
- All Known Implementing Classes:
HttpAuthenticationStore
public interface AuthenticationStore
A store for
Authentication
s and Authentication.Result
s.-
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.default boolean
void
removeAuthentication
(Authentication authentication) void
-
Method Details
-
addAuthentication
- Parameters:
authentication
- theAuthentication
to add
-
removeAuthentication
- Parameters:
authentication
- theAuthentication
to remove
-
clearAuthentications
void clearAuthentications()Removes allAuthentication
s stored -
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
- 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
- Parameters:
result
- theAuthentication.Result
to add
-
removeAuthenticationResult
- Parameters:
result
- theAuthentication.Result
to remove
-
clearAuthenticationResults
void clearAuthenticationResults()Removes all authentication results stored -
findAuthenticationResult
Returns anAuthentication.Result
that matches the given URI, or null if noAuthentication.Result
s match the given URI.- Parameters:
uri
- the request URI- Returns:
- the
Authentication.Result
that matches the given URI, or null
-
hasAuthenticationResults
default boolean hasAuthenticationResults()- Returns:
- false if there are no stored authentication results, true if there may be some.
-