Package com.randomnoun.common.security
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 TypeMethodDescriptionboolean
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
Initialise this security loader. This method will be invoked by the SecurityContext object on initialisation- Parameters:
properties
- Initialisation properties for this loader.
-
authenticate
Returns true if the supplied password authenticates the supplied user, false otherwise.- Parameters:
password
- The password used to authenticate the userusername
- The username to authenticate- Returns:
- true if the username/password combination is valid.
- Throws:
IOException
-