Interface AuthenticationStore

All Known Implementing Classes:
HttpAuthenticationStore

public interface AuthenticationStore
  • Method Details

    • addAuthentication

      void addAuthentication(Authentication authentication)
      Add the Authentication to add.
      Parameters:
      authentication - the Authentication to add
    • removeAuthentication

      void removeAuthentication(Authentication authentication)
      Remove an Authentication.
      Parameters:
      authentication - the Authentication to remove
    • clearAuthentications

      void clearAuthentications()
      Removes all Authentications stored
    • findAuthentication

      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. If no such authentication can be found, returns null.
      Parameters:
      type - the Authentication type such as "Basic" or "Digest"
      uri - the request URI
      realm - the authentication realm
      Returns:
      the authentication that matches the given parameters, or null
    • addAuthenticationResult

      void addAuthenticationResult(Authentication.Result result)
      Add the Authentication.Result to add.
      Parameters:
      result - the Authentication.Result to add
    • removeAuthenticationResult

      void removeAuthenticationResult(Authentication.Result result)
      Remove and Authentication Result
      Parameters:
      result - the Authentication.Result to remove
    • clearAuthenticationResults

      void clearAuthenticationResults()
      Removes all authentication results stored
    • findAuthenticationResult

      Authentication.Result findAuthenticationResult(URI uri)
      Returns an Authentication.Result that matches the given URI, or null if no Authentication.Results match the given URI.
      Parameters:
      uri - the request URI
      Returns:
      the Authentication.Result that 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.