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 theAuthorizationManager
interface.- 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 void
checkPermission(Subject subject, AuthorizationPermission perm)
Verifies that theSubject
has the requested permission.void
checkPermission(Subject subject, AuthorizationPermission perm, String role)
Verifies that theSubject
has the requested permission and role.void
checkPermission(AuthorizationPermission perm)
Verifies that theSubject
associated with the currentAccessControlContext
has the requested permission.void
checkPermission(AuthorizationPermission perm, String role)
Verifies that theSubject
associated with the currentAccessControlContext
has the requested permission and role.void
init(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:AuthorizationManager
Verifies that theSubject
associated with the currentAccessControlContext
has the requested permission. ASecurityException
is thrown otherwise.- Specified by:
checkPermission
in interfaceAuthorizationManager
-
checkPermission
public void checkPermission(Subject subject, AuthorizationPermission perm)
Description copied from interface:AuthorizationManager
Verifies that theSubject
has the requested permission. ASecurityException
is thrown otherwise.- Specified by:
checkPermission
in interfaceAuthorizationManager
-
checkPermission
public void checkPermission(AuthorizationPermission perm, String role)
Description copied from interface:AuthorizationManager
Verifies that theSubject
associated with the currentAccessControlContext
has the requested permission and role. ASecurityException
is thrown otherwise.- Specified by:
checkPermission
in interfaceAuthorizationManager
-
checkPermission
public void checkPermission(Subject subject, AuthorizationPermission perm, String role)
Description copied from interface:AuthorizationManager
Verifies that theSubject
has the requested permission and role. ASecurityException
is thrown otherwise.- Specified by:
checkPermission
in interfaceAuthorizationManager
-
-