public class StaticRolesMapper extends Object implements UserToRolesMapper
Configuration parameters:
| 构造器和说明 |
|---|
StaticRolesMapper() |
StaticRolesMapper(String... roles) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configure(ConfigProperties configProperties)
configure the component
|
Collection<String> |
mapUserToRoles(AuthenticationInfo authenticationInfo)
Map user identified by authentication info to a set of granted roles.
|
public StaticRolesMapper()
public StaticRolesMapper(String... roles)
public void configure(ConfigProperties configProperties)
Configurableconfigure 在接口中 ConfigurableconfigProperties - = configuration propertiespublic Collection<String> mapUserToRoles(AuthenticationInfo authenticationInfo) throws AuthenticationException
UserToRolesMappermapUserToRoles 在接口中 UserToRolesMapperauthenticationInfo - authentication informationAuthenticationException - on authentication exceptionCopyright © 2022. All rights reserved.