Package org.hippoecm.hst.security
Interface AuthenticationProvider
-
public interface AuthenticationProvider
AuthenticationProviderConfigures an authentication provider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description User
authenticate(String userName, char[] password)
Authenticate a user.default Set<Role>
getRolesByUser(User user)
Returns security roles of the given userSet<Role>
getRolesByUsername(String username)
Deprecated.since v14, will be removed in v15+.
-
-
-
Method Detail
-
authenticate
User authenticate(String userName, char[] password) throws SecurityException
Authenticate a user.- Parameters:
userName
- The user name.password
- The user password.- Returns:
- the
User
- Throws:
SecurityException
-
getRolesByUsername
@Deprecated Set<Role> getRolesByUsername(String username) throws SecurityException
Deprecated.since v14, will be removed in v15+. UsegetRolesByUser(User)
insteadReturns security roles of the given username- Parameters:
username
-- Throws:
SecurityException
-
getRolesByUser
default Set<Role> getRolesByUser(User user) throws SecurityException
Returns security roles of the given userNote: this is a default method delegating to deprecated
getRolesByUser(User)
which will become required to be implemented when that method is removed in v15+- Parameters:
user
-- Throws:
SecurityException
-
-