Package org.eclipse.jetty.client.api
Interface AuthenticationStore
- All Known Implementing Classes:
HttpAuthenticationStore
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
A store for
Authentication
s and Authentication.Result
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAuthentication
(Authentication authentication) Deprecated.void
Deprecated.void
Deprecated.Removes all authentication results storedvoid
Deprecated.Removes allAuthentication
s storedfindAuthentication
(String type, URI uri, String realm) Deprecated.Returns the authentication that matches the given type (for example, "Basic" or "Digest"), the given request URI and the given realm.Deprecated.Returns anAuthentication.Result
that matches the given URI, or null if noAuthentication.Result
s match the given URI.default boolean
Deprecated.void
removeAuthentication
(Authentication authentication) Deprecated.void
Deprecated.
-
Method Details
-
addAuthentication
Deprecated.- Parameters:
authentication
- theAuthentication
to add
-
removeAuthentication
Deprecated.- Parameters:
authentication
- theAuthentication
to remove
-
clearAuthentications
void clearAuthentications()Deprecated.Removes allAuthentication
s stored -
findAuthentication
Deprecated.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
- 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
Deprecated.- Parameters:
result
- theAuthentication.Result
to add
-
removeAuthenticationResult
Deprecated.- Parameters:
result
- theAuthentication.Result
to remove
-
clearAuthenticationResults
void clearAuthenticationResults()Deprecated.Removes all authentication results stored -
findAuthenticationResult
Deprecated.Returns anAuthentication.Result
that matches the given URI, or null if noAuthentication.Result
s match the given URI.- Parameters:
uri
- the request URI- Returns:
- the
Authentication.Result
that matches the given URI, or null
-
hasAuthenticationResults
default boolean hasAuthenticationResults()Deprecated.- Returns:
- false if there are no stored authentication results, true if there may be some.
-