Package org.wildfly.security.authz.jacc
Class PolicyUtil
java.lang.Object
org.wildfly.security.authz.jacc.PolicyUtil
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 Summary
Modifier and TypeMethodDescriptionstatic PolicyDeprecated, for removal: This API element is subject to removal in a future version.static PolicyUtilbooleanimplies(Permission permission, Subject subject) Perform the requiredPermissioncheck for the current caller.booleanimplies(ProtectionDomain domain, Permission permission) Deprecated, for removal: This API element is subject to removal in a future version.voidrefresh()Deprecated.static voidDeprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
setPolicy
Deprecated, for removal: This API element is subject to removal in a future version. -
getPolicy
Deprecated, for removal: This API element is subject to removal in a future version. -
getPolicyUtil
-
implies
Deprecated, for removal: This API element is subject to removal in a future version.Implementations should migrate toPolicyUtil#implies(Permission, Subject). -
implies
Perform the requiredPermissioncheck for the current caller.- Parameters:
permission- thePermissionto be checked.subject- theSubjectrepresentation of the caller.- Returns:
trueif the caller has been granted thePermission,falseotherwise.
-
refresh
Deprecated.
-
PolicyUtil#implies(Permission, Subject).