Interface SecurityAuthenticator

All Known Implementing Classes:
NullSecurityAuthenticatorImpl, SpringSecurityAuthenticatorImpl

public interface SecurityAuthenticator
Security authenticator object.

Just the authentication, none of the authorisation.

Author:
knoxg
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    authenticate(User user, String password)
    Returns true if the supplied password authenticates the supplied user, false otherwise.
    void
    initialise(Map<String,Object> properties)
    Initialise this security loader.
  • Method Details

    • initialise

      void initialise(Map<String,Object> properties)
      Initialise this security loader. This method will be invoked by the SecurityContext object on initialisation
      Parameters:
      properties - Initialisation properties for this loader.
    • authenticate

      boolean authenticate(User user, String password) throws IOException
      Returns true if the supplied password authenticates the supplied user, false otherwise.
      Parameters:
      password - The password used to authenticate the user
      username - The username to authenticate
      Returns:
      true if the username/password combination is valid.
      Throws:
      IOException