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
Authentications and Authentication.Results.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthentication(Authentication authentication) Deprecated.voidDeprecated.voidDeprecated.Removes all authentication results storedvoidDeprecated.Removes allAuthentications 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.Resultthat matches the given URI, or null if noAuthentication.Results match the given URI.default booleanDeprecated.voidremoveAuthentication(Authentication authentication) Deprecated.voidDeprecated.
-
Method Details
-
addAuthentication
Deprecated.- Parameters:
authentication- theAuthenticationto add
-
removeAuthentication
Deprecated.- Parameters:
authentication- theAuthenticationto remove
-
clearAuthentications
void clearAuthentications()Deprecated.Removes allAuthentications 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- theAuthenticationtype 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.Resultto add
-
removeAuthenticationResult
Deprecated.- Parameters:
result- theAuthentication.Resultto remove
-
clearAuthenticationResults
void clearAuthenticationResults()Deprecated.Removes all authentication results stored -
findAuthenticationResult
Deprecated.Returns anAuthentication.Resultthat matches the given URI, or null if noAuthentication.Results match the given URI.- Parameters:
uri- the request URI- Returns:
- the
Authentication.Resultthat 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.
-