public class HttpAuthenticationStore extends Object implements AuthenticationStore
Constructor and Description |
---|
HttpAuthenticationStore() |
Modifier and Type | Method and Description |
---|---|
void |
addAuthentication(Authentication authentication) |
void |
addAuthenticationResult(Authentication.Result result) |
void |
clearAuthenticationResults()
Removes all authentication results stored
|
void |
clearAuthentications()
Removes all
Authentication s stored |
Authentication |
findAuthentication(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.
|
Authentication.Result |
findAuthenticationResult(URI uri)
Returns an
Authentication.Result that matches the given URI, or null if no
Authentication.Result s match the given URI. |
void |
removeAuthentication(Authentication authentication) |
void |
removeAuthenticationResult(Authentication.Result result) |
public void addAuthentication(Authentication authentication)
addAuthentication
in interface AuthenticationStore
authentication
- the Authentication
to addpublic void removeAuthentication(Authentication authentication)
removeAuthentication
in interface AuthenticationStore
authentication
- the Authentication
to removepublic void clearAuthentications()
AuthenticationStore
Authentication
s storedclearAuthentications
in interface AuthenticationStore
public Authentication findAuthentication(String type, URI uri, String realm)
AuthenticationStore
findAuthentication
in interface AuthenticationStore
type
- the Authentication
type such as "Basic" or "Digest"uri
- the request URIrealm
- the authentication realmpublic void addAuthenticationResult(Authentication.Result result)
addAuthenticationResult
in interface AuthenticationStore
result
- the Authentication.Result
to addpublic void removeAuthenticationResult(Authentication.Result result)
removeAuthenticationResult
in interface AuthenticationStore
result
- the Authentication.Result
to removepublic void clearAuthenticationResults()
AuthenticationStore
clearAuthenticationResults
in interface AuthenticationStore
public Authentication.Result findAuthenticationResult(URI uri)
AuthenticationStore
Authentication.Result
that matches the given URI, or null if no
Authentication.Result
s match the given URI.findAuthenticationResult
in interface AuthenticationStore
uri
- the request URIAuthentication.Result
that matches the given URI, or nullCopyright © 1995-2015 Webtide. All Rights Reserved.