Package org.infinispan.security.impl
Class Authorizer
java.lang.Object
org.infinispan.security.impl.Authorizer
Authorizer. Some utility methods for computing access masks and verifying them against permissions
- Since:
- 7.0
- Author:
- Tristan Tarrant
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAuthorizer
(GlobalSecurityConfiguration globalConfiguration, AuditContext context, String name, Map<CacheSubjectPair, SubjectACL> aclCache) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPermission
(Subject subject, AuthorizationPermission perm) void
checkPermission
(Subject subject, AuthorizationPermission perm, String contextName, AuditContext auditContext) void
checkPermission
(Subject subject, AuthorizationPermission perm, AuditContext explicitContext) void
checkPermission
(AuthorizationConfiguration configuration, Subject subject, String explicitName, AuditContext explicitContext, String role, AuthorizationPermission perm) void
checkPermission
(AuthorizationConfiguration configuration, Subject subject, AuthorizationPermission perm, String role) void
checkPermission
(AuthorizationConfiguration configuration, AuthorizationPermission perm) void
void
checkPermission
(AuthorizationPermission perm, String role) getACL
(Subject subject, AuthorizationConfiguration configuration) getPermissions
(AuthorizationConfiguration configuration, Subject subject) void
setAclCache
(Map<CacheSubjectPair, SubjectACL> aclCache)
-
Field Details
-
SUPERUSER
-
-
Constructor Details
-
Authorizer
public Authorizer(GlobalSecurityConfiguration globalConfiguration, AuditContext context, String name, Map<CacheSubjectPair, SubjectACL> aclCache)
-
-
Method Details
-
setAclCache
-
checkPermission
-
checkPermission
-
checkPermission
-
checkPermission
-
getACL
-
getACL
-
checkPermission
public void checkPermission(AuthorizationConfiguration configuration, Subject subject, AuthorizationPermission perm, String role) -
checkPermission
public void checkPermission(Subject subject, AuthorizationPermission perm, AuditContext explicitContext) -
checkPermission
public void checkPermission(Subject subject, AuthorizationPermission perm, String contextName, AuditContext auditContext) -
checkPermission
public void checkPermission(AuthorizationConfiguration configuration, Subject subject, String explicitName, AuditContext explicitContext, String role, AuthorizationPermission perm) -
getPermissions
public EnumSet<AuthorizationPermission> getPermissions(AuthorizationConfiguration configuration, Subject subject)
-