public interface AuthorizationMapper
For example, group users may be mapped to roles read, write and execute
| Modifier and Type | Method and Description |
|---|---|
void |
checkAuthorization(String target,
String permission)
Validate whether the current user has both target and permission
persissions
|
Collection<org.springframework.security.core.GrantedAuthority> |
map(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
String username)
Map the GrantedAuthorities received from the underlying
authentication/authorization to a new set of, for example, roles
|
Collection<org.springframework.security.core.GrantedAuthority> map(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String username) throws org.springframework.security.access.AuthorizationServiceException
authorities - The existing authoritiesusername - The user nameorg.springframework.security.access.AuthorizationServiceException - If the mapping failsvoid checkAuthorization(String target, String permission) throws AccessControlException
target - The target permissionpermission - A base permissionAccessControlException - If the mapping failsCopyright © 2019 ADDC Infotech GmbH. All rights reserved.