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.AuthorizationPermission
getWritePermission()
Returns the permission required to write to the resource associated with this AuthorizationManager.void
init(String cacheName, GlobalConfiguration globalConfiguration, Configuration configuration, GlobalSecurityManager globalSecurityManager)
-
-
-
Method Detail
-
init
public void init(String cacheName, GlobalConfiguration globalConfiguration, Configuration configuration, GlobalSecurityManager globalSecurityManager)
-
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
-
getWritePermission
public AuthorizationPermission getWritePermission()
Description copied from interface:AuthorizationManager
Returns the permission required to write to the resource associated with this AuthorizationManager.- Specified by:
getWritePermission
in interfaceAuthorizationManager
-
-