Package org.eclipse.jetty.client.api
Interface AuthenticationStore
-
- All Known Implementing Classes:
HttpAuthenticationStore
public interface AuthenticationStoreA store forAuthentications andAuthentication.Results.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddAuthentication(Authentication authentication)voidaddAuthenticationResult(Authentication.Result result)voidclearAuthenticationResults()Removes all authentication results storedvoidclearAuthentications()Removes allAuthentications storedAuthenticationfindAuthentication(java.lang.String type, java.net.URI uri, java.lang.String realm)Returns the authentication that matches the given type (for example, "Basic" or "Digest"), the given request URI and the given realm.Authentication.ResultfindAuthenticationResult(java.net.URI uri)Returns anAuthentication.Resultthat matches the given URI, or null if noAuthentication.Results match the given URI.default booleanhasAuthenticationResults()voidremoveAuthentication(Authentication authentication)voidremoveAuthenticationResult(Authentication.Result result)
-
-
-
Method Detail
-
addAuthentication
void addAuthentication(Authentication authentication)
- Parameters:
authentication- theAuthenticationto add
-
removeAuthentication
void removeAuthentication(Authentication authentication)
- Parameters:
authentication- theAuthenticationto remove
-
clearAuthentications
void clearAuthentications()
Removes allAuthentications stored
-
findAuthentication
Authentication findAuthentication(java.lang.String type, java.net.URI uri, java.lang.String realm)
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
void addAuthenticationResult(Authentication.Result result)
- Parameters:
result- theAuthentication.Resultto add
-
removeAuthenticationResult
void removeAuthenticationResult(Authentication.Result result)
- Parameters:
result- theAuthentication.Resultto remove
-
clearAuthenticationResults
void clearAuthenticationResults()
Removes all authentication results stored
-
findAuthenticationResult
Authentication.Result findAuthenticationResult(java.net.URI uri)
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.
-
-