Interface PrincipalSecurityChecker
-
- All Known Implementing Classes:
DefaultPrincipalSecurityChecker
public interface PrincipalSecurityCheckerSecurity Checker for authorizing users.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthorizePrincipal(org.springframework.security.core.Authentication authentication, java.lang.String principalUid)Decides whether authenticated user has access to requested resource.
-
-
-
Method Detail
-
authorizePrincipal
boolean authorizePrincipal(org.springframework.security.core.Authentication authentication, java.lang.String principalUid)Decides whether authenticated user has access to requested resource.- Parameters:
authentication- is the object that represents the authenticated userprincipalUid- is a Uid of a user whose permissions are being requested- Returns:
- whether authenticated user is allowed to get the resource
-
-