Interface PermissionAuthorizationManagerFactory


public interface PermissionAuthorizationManagerFactory
Interface for a custom PermissionAuthorizationManagerFactory that creates an AuthorizationManager which validates the provided permissions against the GrantedAuthorities of an Authentication object.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> org.springframework.security.authorization.AuthorizationManager<T>
    forPermissions(String... permissions)
    Factory method to create an AuthorizationManager which validate the Authentication against the provided permissions.
  • Method Details

    • forPermissions

      <T> org.springframework.security.authorization.AuthorizationManager<T> forPermissions(String... permissions)
      Factory method to create an AuthorizationManager which validate the Authentication against the provided permissions.
      Type Parameters:
      T - the type of object that the authorization check is being done on.
      Parameters:
      permissions - The permissions which are allowed.
      Returns:
      an AuthorizationManager