Interface AuthorizationManager


  • public interface AuthorizationManager
    The AuthorizationManager is a cache-scoped component which verifies that the Subject associated with the current AccessControlContext, or explicitly specified, has the requested permissions.
    Since:
    7.0
    Author:
    Tristan Tarrant
    • Method Detail

      • checkPermission

        void checkPermission​(AuthorizationPermission permission)
        Verifies that the Subject associated with the current AccessControlContext has the requested permission. A SecurityException is thrown otherwise.
      • checkPermission

        void checkPermission​(javax.security.auth.Subject subject,
                             AuthorizationPermission permission)
        Verifies that the Subject has the requested permission. A SecurityException is thrown otherwise.
      • checkPermission

        void checkPermission​(AuthorizationPermission permission,
                             java.lang.String role)
        Verifies that the Subject associated with the current AccessControlContext has the requested permission and role. A SecurityException is thrown otherwise.
      • checkPermission

        void checkPermission​(javax.security.auth.Subject subject,
                             AuthorizationPermission permission,
                             java.lang.String role)
        Verifies that the Subject has the requested permission and role. A SecurityException is thrown otherwise.