public class DefaultAuthorizationMapper extends Object implements AuthorizationMapper
| Constructor and Description |
|---|
DefaultAuthorizationMapper() |
| 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
|
public Collection<org.springframework.security.core.GrantedAuthority> map(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String username) throws org.springframework.security.access.AuthorizationServiceException
AuthorizationMappermap in interface AuthorizationMapperauthorities - The existing authoritiesusername - The user nameorg.springframework.security.access.AuthorizationServiceException - If the mapping fails@CoberturaIgnore public void checkAuthorization(String target, String permission) throws AccessControlException
AuthorizationMappercheckAuthorization in interface AuthorizationMappertarget - The target permissionpermission - A base permissionAccessControlException - If the mapping failsCopyright © 2019 ADDC Infotech GmbH. All rights reserved.