Package org.infinispan.security.impl
Class PermissiveAuthorizationManager
java.lang.Object
org.infinispan.security.impl.PermissiveAuthorizationManager
- All Implemented Interfaces:
AuthorizationManager
A permissive
AuthorizationManager.- Since:
- 14.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckPermission(Subject subject, AuthorizationPermission permission) Verifies that theSubjecthas the requested permission.voidcheckPermission(Subject subject, AuthorizationPermission permission, String role) Verifies that theSubjecthas the requested permission and role.voidcheckPermission(AuthorizationPermission permission) Verifies that theSubjectassociated with the currentAccessControlContexthas the requested permission.voidcheckPermission(AuthorizationPermission permission, String role) Verifies that theSubjectassociated with the currentAccessControlContexthas the requested permission and role.voiddoIf(Subject subject, AuthorizationPermission permission, Runnable runnable) Executes the runnable only if the current user has the specified permissiongetPermissions(Subject subject) Returns the permissions that the specifiedSubjecthas for the cacheReturns the permission required to write to the resource associated with this AuthorizationManager.boolean
-
Constructor Details
-
PermissiveAuthorizationManager
public PermissiveAuthorizationManager()
-
-
Method Details
-
checkPermission
Description copied from interface:AuthorizationManagerVerifies that theSubjectassociated with the currentAccessControlContexthas the requested permission. ASecurityExceptionis thrown otherwise.- Specified by:
checkPermissionin interfaceAuthorizationManager
-
checkPermission
Description copied from interface:AuthorizationManagerVerifies that theSubjecthas the requested permission. ASecurityExceptionis thrown otherwise.- Specified by:
checkPermissionin interfaceAuthorizationManager
-
checkPermission
Description copied from interface:AuthorizationManagerVerifies that theSubjectassociated with the currentAccessControlContexthas the requested permission and role. ASecurityExceptionis thrown otherwise.- Specified by:
checkPermissionin interfaceAuthorizationManager
-
checkPermission
Description copied from interface:AuthorizationManagerVerifies that theSubjecthas the requested permission and role. ASecurityExceptionis thrown otherwise.- Specified by:
checkPermissionin interfaceAuthorizationManager
-
getPermissions
Description copied from interface:AuthorizationManagerReturns the permissions that the specifiedSubjecthas for the cache- Specified by:
getPermissionsin interfaceAuthorizationManager
-
getWritePermission
Description copied from interface:AuthorizationManagerReturns the permission required to write to the resource associated with this AuthorizationManager.- Specified by:
getWritePermissionin interfaceAuthorizationManager
-
doIf
Description copied from interface:AuthorizationManagerExecutes the runnable only if the current user has the specified permission- Specified by:
doIfin interfaceAuthorizationManager
-
isPermissive
public boolean isPermissive()- Specified by:
isPermissivein interfaceAuthorizationManager
-