Class PolicyUtil

java.lang.Object
org.wildfly.security.authz.jacc.PolicyUtil

public final class PolicyUtil extends Object
Utility for passing policy checks to the appropriate Policy instance. In Jakarta EE 10 this class did maintain the Policy reference, however now this class uses the PolicyFactory directly.
Author:
Darran Lofthouse
  • Method Details

    • setPolicy

      @Deprecated(forRemoval=true) public static void setPolicy(Policy policy)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPolicy

      @Deprecated(forRemoval=true) public static Policy getPolicy()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPolicyUtil

      public static PolicyUtil getPolicyUtil()
    • implies

      @Deprecated(forRemoval=true) public boolean implies(ProtectionDomain domain, Permission permission)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Implementations should migrate to PolicyUtil#implies(Permission, Subject).
    • implies

      public boolean implies(Permission permission, Subject subject)
      Perform the required Permission check for the current caller.
      Parameters:
      permission - the Permission to be checked.
      subject - the Subject representation of the caller.
      Returns:
      true if the caller has been granted the Permission, false otherwise.
    • refresh

      @Deprecated public void refresh()
      Deprecated.