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 Summary Link icon

    Modifier and Type
    Method
    Description
    org.springframework.security.authorization.AuthorizationDecision
    authorize(Supplier<org.springframework.security.core.Authentication> authentication, T object)
     
    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.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.security.authorization.AuthorizationManager Link icon

    verify
  • Method Details Link icon

    • authorize Link icon

      public org.springframework.security.authorization.AuthorizationDecision authorize(Supplier<org.springframework.security.core.Authentication> authentication, T object)
      Specified by:
      authorize in interface org.springframework.security.authorization.AuthorizationManager<T>
    • check Link icon

      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 successor
      invalid @link
      {@link this#authorize(Supplier, Object)
      } though
      Specified by:
      check in interface org.springframework.security.authorization.AuthorizationManager<T>