Package org.infinispan.security
Interface AuthorizationManager
public interface AuthorizationManager
The AuthorizationManager is a cache-scoped component which verifies that the
Subject
associated with the current AccessControlContext
, or explicitly specified, has the requested permissions.- Since:
- 7.0
- Author:
- Tristan Tarrant
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPermission
(Subject subject, AuthorizationPermission permission) Verifies that theSubject
has the requested permission.void
checkPermission
(Subject subject, AuthorizationPermission permission, String role) Verifies that theSubject
has the requested permission and role.void
checkPermission
(AuthorizationPermission permission) Verifies that theSubject
associated with the currentAccessControlContext
has the requested permission.void
checkPermission
(AuthorizationPermission permission, String role) Verifies that theSubject
associated with the currentAccessControlContext
has the requested permission and role.Returns the permission required to write to the resource associated with this AuthorizationManager.
-
Method Details
-
checkPermission
Verifies that theSubject
associated with the currentAccessControlContext
has the requested permission. ASecurityException
is thrown otherwise. -
checkPermission
Verifies that theSubject
has the requested permission. ASecurityException
is thrown otherwise. -
checkPermission
Verifies that theSubject
associated with the currentAccessControlContext
has the requested permission and role. ASecurityException
is thrown otherwise. -
checkPermission
Verifies that theSubject
has the requested permission and role. ASecurityException
is thrown otherwise. -
getWritePermission
AuthorizationPermission getWritePermission()Returns the permission required to write to the resource associated with this AuthorizationManager.
-