Class HttpAuthenticationStore
java.lang.Object
org.eclipse.jetty.client.internal.HttpAuthenticationStore
- All Implemented Interfaces:
AuthenticationStore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAuthentication
(Authentication authentication) Add theAuthentication
to add.void
Add theAuthentication.Result
to add.void
Removes all authentication results storedvoid
Removes allAuthentication
s 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.Result
that matches the given URI, or null if noAuthentication.Result
s match the given URI.boolean
void
removeAuthentication
(Authentication authentication) Remove an Authentication.void
Remove and Authentication Result
-
Constructor Details
-
HttpAuthenticationStore
public HttpAuthenticationStore()
-
-
Method Details
-
addAuthentication
Description copied from interface:AuthenticationStore
Add theAuthentication
to add.- Specified by:
addAuthentication
in interfaceAuthenticationStore
- Parameters:
authentication
- theAuthentication
to add
-
removeAuthentication
Description copied from interface:AuthenticationStore
Remove an Authentication.- Specified by:
removeAuthentication
in interfaceAuthenticationStore
- Parameters:
authentication
- theAuthentication
to remove
-
clearAuthentications
public void clearAuthentications()Description copied from interface:AuthenticationStore
Removes allAuthentication
s stored- Specified by:
clearAuthentications
in interfaceAuthenticationStore
-
findAuthentication
Description copied from interface:AuthenticationStore
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.- Specified by:
findAuthentication
in interfaceAuthenticationStore
- Parameters:
type
- theAuthentication
type 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:AuthenticationStore
Add theAuthentication.Result
to add.- Specified by:
addAuthenticationResult
in interfaceAuthenticationStore
- Parameters:
result
- theAuthentication.Result
to add
-
removeAuthenticationResult
Description copied from interface:AuthenticationStore
Remove and Authentication Result- Specified by:
removeAuthenticationResult
in interfaceAuthenticationStore
- Parameters:
result
- theAuthentication.Result
to remove
-
clearAuthenticationResults
public void clearAuthenticationResults()Description copied from interface:AuthenticationStore
Removes all authentication results stored- Specified by:
clearAuthenticationResults
in interfaceAuthenticationStore
-
findAuthenticationResult
Description copied from interface:AuthenticationStore
Returns anAuthentication.Result
that matches the given URI, or null if noAuthentication.Result
s match the given URI.- Specified by:
findAuthenticationResult
in interfaceAuthenticationStore
- Parameters:
uri
- the request URI- Returns:
- the
Authentication.Result
that matches the given URI, or null
-
hasAuthenticationResults
public boolean hasAuthenticationResults()- Specified by:
hasAuthenticationResults
in interfaceAuthenticationStore
- Returns:
- false if there are no stored authentication results, true if there may be some.
-