Package org.infinispan.security.impl
Class AuthorizationManagerImpl
- java.lang.Object
-
- org.infinispan.security.impl.AuthorizationManagerImpl
-
- All Implemented Interfaces:
AuthorizationManager
public class AuthorizationManagerImpl extends Object implements AuthorizationManager
AuthorizationManagerImpl. An implementation of theAuthorizationManagerinterface.- Since:
- 7.0
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description AuthorizationManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckPermission(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.voidcheckPermission(AuthorizationPermission perm)Verifies that theSubjectassociated with the currentAccessControlContexthas the requested permission.voidcheckPermission(AuthorizationPermission perm, String role)Verifies that theSubjectassociated with the currentAccessControlContexthas the requested permission and role.voidinit(String cacheName, GlobalConfiguration globalConfiguration, Configuration configuration, GlobalSecurityManager globalSecurityManager, EmbeddedCacheManager cacheManager)
-
-
-
Method Detail
-
init
public void init(String cacheName, GlobalConfiguration globalConfiguration, Configuration configuration, GlobalSecurityManager globalSecurityManager, EmbeddedCacheManager cacheManager)
-
checkPermission
public void checkPermission(AuthorizationPermission perm)
Description copied from interface:AuthorizationManagerVerifies that theSubjectassociated with the currentAccessControlContexthas the requested permission. ASecurityExceptionis thrown otherwise.- Specified by:
checkPermissionin interfaceAuthorizationManager
-
checkPermission
public void checkPermission(Subject subject, AuthorizationPermission perm)
Description copied from interface:AuthorizationManagerVerifies that theSubjecthas the requested permission. ASecurityExceptionis thrown otherwise.- Specified by:
checkPermissionin interfaceAuthorizationManager
-
checkPermission
public void checkPermission(AuthorizationPermission perm, String role)
Description copied from interface:AuthorizationManagerVerifies that theSubjectassociated with the currentAccessControlContexthas the requested permission and role. ASecurityExceptionis thrown otherwise.- Specified by:
checkPermissionin interfaceAuthorizationManager
-
checkPermission
public void checkPermission(Subject subject, AuthorizationPermission perm, String role)
Description copied from interface:AuthorizationManagerVerifies that theSubjecthas the requested permission and role. ASecurityExceptionis thrown otherwise.- Specified by:
checkPermissionin interfaceAuthorizationManager
-
-