Package org.infinispan.security
Interface AuthorizationManager
-
public interface AuthorizationManagerThe AuthorizationManager is a cache-scoped component which verifies that theSubjectassociated 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 voidcheckPermission(javax.security.auth.Subject subject, AuthorizationPermission permission)Verifies that theSubjecthas the requested permission.voidcheckPermission(javax.security.auth.Subject subject, AuthorizationPermission permission, java.lang.String role)Verifies that theSubjecthas the requested permission and role.voidcheckPermission(AuthorizationPermission permission)Verifies that theSubjectassociated with the currentAccessControlContexthas the requested permission.voidcheckPermission(AuthorizationPermission permission, java.lang.String role)Verifies that theSubjectassociated with the currentAccessControlContexthas the requested permission and role.
-
-
-
Method Detail
-
checkPermission
void checkPermission(AuthorizationPermission permission)
Verifies that theSubjectassociated with the currentAccessControlContexthas the requested permission. ASecurityExceptionis thrown otherwise.
-
checkPermission
void checkPermission(javax.security.auth.Subject subject, AuthorizationPermission permission)Verifies that theSubjecthas the requested permission. ASecurityExceptionis thrown otherwise.
-
checkPermission
void checkPermission(AuthorizationPermission permission, java.lang.String role)
Verifies that theSubjectassociated with the currentAccessControlContexthas the requested permission and role. ASecurityExceptionis thrown otherwise.
-
checkPermission
void checkPermission(javax.security.auth.Subject subject, AuthorizationPermission permission, java.lang.String role)Verifies that theSubjecthas the requested permission and role. ASecurityExceptionis thrown otherwise.
-
-