Package org.infinispan.security
Interface AuthorizationManager
-
public interface AuthorizationManager
The AuthorizationManager is a cache-scoped component which verifies that theSubject
associated with the currentAccessControlContext
, or explicitly specified, has the requested permissions.- Since:
- 7.0
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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.AuthorizationPermission
getWritePermission()
Returns the permission required to write to the resource associated with this AuthorizationManager.
-
-
-
Method Detail
-
checkPermission
void checkPermission(AuthorizationPermission permission)
Verifies that theSubject
associated with the currentAccessControlContext
has the requested permission. ASecurityException
is thrown otherwise.
-
checkPermission
void checkPermission(Subject subject, AuthorizationPermission permission)
Verifies that theSubject
has the requested permission. ASecurityException
is thrown otherwise.
-
checkPermission
void checkPermission(AuthorizationPermission permission, String role)
Verifies that theSubject
associated with the currentAccessControlContext
has the requested permission and role. ASecurityException
is thrown otherwise.
-
checkPermission
void checkPermission(Subject subject, AuthorizationPermission permission, String role)
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.
-
-