Class DefaultPrincipalSecurityChecker
- java.lang.Object
-
- de.hybris.platform.permissionswebservices.security.impl.DefaultPrincipalSecurityChecker
-
- All Implemented Interfaces:
PrincipalSecurityChecker
public class DefaultPrincipalSecurityChecker extends java.lang.Object implements PrincipalSecurityChecker
Default implementation ofPrincipalSecurityChecker.
-
-
Constructor Summary
Constructors Constructor Description DefaultPrincipalSecurityChecker()
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean authorizePrincipal(org.springframework.security.core.Authentication authentication, java.lang.String principalUid)Description copied from interface:PrincipalSecurityCheckerDecides whether authenticated user has access to requested resource.- Specified by:
authorizePrincipalin interfacePrincipalSecurityChecker- 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
-
-