Package org.infinispan.security.impl
Class AuthorizationManagerImpl
java.lang.Object
org.infinispan.security.impl.AuthorizationManagerImpl
- All Implemented Interfaces:
- AuthorizationManager
AuthorizationManagerImpl. An implementation of the 
AuthorizationManager interface.- Since:
- 7.0
- Author:
- Tristan Tarrant
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheckPermission(Subject subject, AuthorizationPermission perm) Verifies that theSubjecthas the requested permission.voidcheckPermission(Subject subject, AuthorizationPermission perm, String role) Verifies that theSubjecthas the requested permission and role.voidVerifies that theSubjectassociated with the current thread has the requested permission.voidcheckPermission(AuthorizationPermission perm, String role) Verifies that theSubjectassociated with the current thread has 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.voidinit(String cacheName, GlobalConfiguration globalConfiguration, Configuration configuration, GlobalSecurityManager globalSecurityManager) boolean
- 
Constructor Details- 
AuthorizationManagerImplpublic AuthorizationManagerImpl()
 
- 
- 
Method Details- 
initpublic void init(String cacheName, GlobalConfiguration globalConfiguration, Configuration configuration, GlobalSecurityManager globalSecurityManager) 
- 
checkPermissionDescription copied from interface:AuthorizationManagerVerifies that theSubjectassociated with the current thread has the requested permission. ASecurityExceptionis thrown otherwise.- Specified by:
- checkPermissionin interface- AuthorizationManager
 
- 
checkPermissionDescription copied from interface:AuthorizationManagerVerifies that theSubjecthas the requested permission. ASecurityExceptionis thrown otherwise.- Specified by:
- checkPermissionin interface- AuthorizationManager
 
- 
checkPermissionDescription copied from interface:AuthorizationManagerVerifies that theSubjectassociated with the current thread has the requested permission and role. ASecurityExceptionis thrown otherwise.- Specified by:
- checkPermissionin interface- AuthorizationManager
 
- 
checkPermissionDescription copied from interface:AuthorizationManagerVerifies that theSubjecthas the requested permission and role. ASecurityExceptionis thrown otherwise.- Specified by:
- checkPermissionin interface- AuthorizationManager
 
- 
getPermissionsDescription copied from interface:AuthorizationManagerReturns the permissions that the specifiedSubjecthas for the cache- Specified by:
- getPermissionsin interface- AuthorizationManager
 
- 
getWritePermissionDescription copied from interface:AuthorizationManagerReturns the permission required to write to the resource associated with this AuthorizationManager.- Specified by:
- getWritePermissionin interface- AuthorizationManager
 
- 
doIfDescription copied from interface:AuthorizationManagerExecutes the runnable only if the current user has the specified permission- Specified by:
- doIfin interface- AuthorizationManager
 
- 
isPermissivepublic boolean isPermissive()- Specified by:
- isPermissivein interface- AuthorizationManager
 
 
-