Package org.eclipse.jetty.client.api
Interface AuthenticationStore
- All Known Implementing Classes:
HttpAuthenticationStore
public interface AuthenticationStore
A store for
Authentications and Authentication.Results.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthentication(Authentication authentication) voidvoidRemoves all authentication results storedvoidRemoves allAuthentications 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.Resultthat matches the given URI, or null if noAuthentication.Results match the given URI.default booleanvoidremoveAuthentication(Authentication authentication) void
-
Method Details
-
addAuthentication
- Parameters:
authentication- theAuthenticationto add
-
removeAuthentication
- Parameters:
authentication- theAuthenticationto remove
-
clearAuthentications
void clearAuthentications()Removes allAuthentications 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- theAuthenticationtype 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.Resultto add
-
removeAuthenticationResult
- Parameters:
result- theAuthentication.Resultto remove
-
clearAuthenticationResults
void clearAuthenticationResults()Removes all authentication results stored -
findAuthenticationResult
Returns anAuthentication.Resultthat matches the given URI, or null if noAuthentication.Results match the given URI.- Parameters:
uri- the request URI- Returns:
- the
Authentication.Resultthat 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.
-