public interface AuthenticationProvider
Configures an authentication provider.
Modifier and Type | Method and Description |
---|---|
User |
authenticate(String userName,
char[] password)
Authenticate a user.
|
default Set<Role> |
getRolesByUser(User user)
Returns security roles of the given user
|
Set<Role> |
getRolesByUsername(String username)
Deprecated.
since v14, will be removed in v15+. Use
getRolesByUser(User) instead |
User authenticate(String userName, char[] password) throws SecurityException
userName
- The user name.password
- The user password.User
SecurityException
@Deprecated Set<Role> getRolesByUsername(String username) throws SecurityException
getRolesByUser(User)
insteadusername
- SecurityException
default Set<Role> getRolesByUser(User user) throws SecurityException
Note: this is a default method delegating to deprecated getRolesByUser(User)
which will become required to be implemented when that method is removed in v15+
user
- SecurityException
Copyright © 2012–2025 Bloomreach. All rights reserved.