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 TypeMethodDescriptionbooleanauthenticate(User user, String password) Returns true if the supplied password authenticates the supplied user, false otherwise.voidinitialise(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
-