Class HttpAuthenticationStore
java.lang.Object
org.eclipse.jetty.client.internal.HttpAuthenticationStore
- All Implemented Interfaces:
AuthenticationStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthentication(Authentication authentication) Add theAuthenticationto add.voidAdd theAuthentication.Resultto add.voidRemoves 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) Remove an Authentication.voidRemove and Authentication Result
-
Constructor Details
-
HttpAuthenticationStore
public HttpAuthenticationStore()
-
-
Method Details
-
addAuthentication
Description copied from interface:AuthenticationStoreAdd theAuthenticationto add.- Specified by:
addAuthenticationin interfaceAuthenticationStore- Parameters:
authentication- theAuthenticationto add
-
removeAuthentication
Description copied from interface:AuthenticationStoreRemove an Authentication.- 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
Description copied from interface:AuthenticationStoreAdd theAuthentication.Resultto add.- Specified by:
addAuthenticationResultin interfaceAuthenticationStore- Parameters:
result- theAuthentication.Resultto add
-
removeAuthenticationResult
Description copied from interface:AuthenticationStoreRemove and Authentication Result- 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.
-