Interface AuthenticationStore
public interface AuthenticationStore
A store for 
Authentications and Authentication.Results.- 
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthentication(Authentication authentication) Add theAuthenticationto add.voidAdd theAuthentication.Resultto add.voidRemoves all authentication results storedvoidRemoves allAuthentications 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.Resultthat matches the given URI, or null if noAuthentication.Results match the given URI.default booleanvoidremoveAuthentication(Authentication authentication) Remove an Authentication.voidRemove and Authentication Result 
- 
Method Details
- 
addAuthentication
Add theAuthenticationto add.- Parameters:
 authentication- theAuthenticationto add
 - 
removeAuthentication
Remove an Authentication.- Parameters:
 authentication- theAuthenticationto remove
 - 
clearAuthentications
void clearAuthentications()Removes allAuthentications stored - 
findAuthentication
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
Add theAuthentication.Resultto add.- Parameters:
 result- theAuthentication.Resultto add
 - 
removeAuthenticationResult
Remove and Authentication Result- Parameters:
 result- theAuthentication.Resultto remove
 - 
clearAuthenticationResults
void clearAuthenticationResults()Removes all authentication results stored - 
findAuthenticationResult
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()- Returns:
 - false if there are no stored authentication results, true if there may be some.
 
 
 -