Package com.aquima.web.security
Class PermissionAuthorizationManager<T>
java.lang.Object
com.aquima.web.security.PermissionAuthorizationManager<T>
- All Implemented Interfaces:
org.springframework.security.authorization.AuthorizationManager<T>
public class PermissionAuthorizationManager<T>
extends Object
implements org.springframework.security.authorization.AuthorizationManager<T>
This class is similar to AuthorityAuthorizationManager from Spring Security except it doesn't compare against a user
role, but against a role permissions.
- Since:
- 16.0
-
Method Details
-
authorize
public org.springframework.security.authorization.AuthorizationDecision authorize(Supplier<org.springframework.security.core.Authentication> authentication, T object) - Specified by:
authorize
in interfaceorg.springframework.security.authorization.AuthorizationManager<T>
-
check
public org.springframework.security.authorization.AuthorizationDecision check(Supplier<org.springframework.security.core.Authentication> authentication, T object) BS: Suppressed deprecation because we still have to override this method as there's no default implementation. Method body has been moved to its successorinvalid @link
{@link this#authorize(Supplier, Object)
- Specified by:
check
in interfaceorg.springframework.security.authorization.AuthorizationManager<T>
-