public class StaticRolesMapper extends java.lang.Object implements UserToRolesMapper
Configuration parameters:
| Constructor and Description |
|---|
StaticRolesMapper() |
StaticRolesMapper(java.lang.String... roles) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ConfigProperties configProperties)
configure the component
|
java.util.Collection<java.lang.String> |
mapUserToRoles(AuthenticationInfo authenticationInfo)
Map user identified by authentication info to a set of granted roles.
|
public StaticRolesMapper()
public StaticRolesMapper(java.lang.String... roles)
public void configure(ConfigProperties configProperties)
Configurableconfigure in interface ConfigurableconfigProperties - = configuration propertiespublic java.util.Collection<java.lang.String> mapUserToRoles(AuthenticationInfo authenticationInfo) throws AuthenticationException
UserToRolesMappermapUserToRoles in interface UserToRolesMapperauthenticationInfo - authentication informationAuthenticationException - on authentication exception