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.
-
-
-
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.
-
-