Package org.eclipse.jetty.client
Class HttpAuthenticationStore
- java.lang.Object
-
- org.eclipse.jetty.client.HttpAuthenticationStore
-
- All Implemented Interfaces:
AuthenticationStore
public class HttpAuthenticationStore extends java.lang.Object implements AuthenticationStore
-
-
Constructor Summary
Constructors Constructor Description HttpAuthenticationStore()
-
Method Summary
All Methods Instance Methods Concrete 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.booleanhasAuthenticationResults()voidremoveAuthentication(Authentication authentication)voidremoveAuthenticationResult(Authentication.Result result)
-
-
-
Method Detail
-
addAuthentication
public void addAuthentication(Authentication authentication)
- Specified by:
addAuthenticationin interfaceAuthenticationStore- Parameters:
authentication- theAuthenticationto add
-
removeAuthentication
public void removeAuthentication(Authentication 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
public Authentication findAuthentication(java.lang.String type, java.net.URI uri, java.lang.String realm)
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
public void addAuthenticationResult(Authentication.Result result)
- Specified by:
addAuthenticationResultin interfaceAuthenticationStore- Parameters:
result- theAuthentication.Resultto add
-
removeAuthenticationResult
public void removeAuthenticationResult(Authentication.Result 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
public Authentication.Result findAuthenticationResult(java.net.URI uri)
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.
-
-