Package org.eclipse.jetty.client
Class HttpAuthenticationStore
java.lang.Object
org.eclipse.jetty.client.HttpAuthenticationStore
- All Implemented Interfaces:
AuthenticationStore
-
Constructor Summary
Constructors -
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.booleanvoidremoveAuthentication(Authentication authentication) void
-
Constructor Details
-
HttpAuthenticationStore
public HttpAuthenticationStore()
-
-
Method Details
-
addAuthentication
- Specified by:
addAuthenticationin interfaceAuthenticationStore- Parameters:
authentication- theAuthenticationto add
-
removeAuthentication
- Specified by:
removeAuthenticationin interfaceAuthenticationStore- Parameters:
authentication- theAuthenticationto remove
-
clearAuthentications
public void clearAuthentications()Description copied from interface:AuthenticationStoreRemoves allAuthentications stored- Specified by:
clearAuthenticationsin interfaceAuthenticationStore
-
findAuthentication
Description copied from interface:AuthenticationStoreReturns 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:
findAuthenticationin interfaceAuthenticationStore- 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
- Specified by:
addAuthenticationResultin interfaceAuthenticationStore- Parameters:
result- theAuthentication.Resultto add
-
removeAuthenticationResult
- Specified by:
removeAuthenticationResultin interfaceAuthenticationStore- Parameters:
result- theAuthentication.Resultto remove
-
clearAuthenticationResults
public void clearAuthenticationResults()Description copied from interface:AuthenticationStoreRemoves all authentication results stored- Specified by:
clearAuthenticationResultsin interfaceAuthenticationStore
-
findAuthenticationResult
Description copied from interface:AuthenticationStoreReturns anAuthentication.Resultthat matches the given URI, or null if noAuthentication.Results match the given URI.- Specified by:
findAuthenticationResultin interfaceAuthenticationStore- Parameters:
uri- the request URI- Returns:
- the
Authentication.Resultthat matches the given URI, or null
-
hasAuthenticationResults
public boolean hasAuthenticationResults()- Specified by:
hasAuthenticationResultsin interfaceAuthenticationStore- Returns:
- false if there are no stored authentication results, true if there may be some.
-