Package com.hazelcast.access
Interface AccessControlService
public interface AccessControlService
Service for pluggable authentication and authorization.
- 
Method SummaryModifier and TypeMethodDescriptionString[]Authenticates user described by givenAuthenticationContextand returns role names assigned.booleanisAccessGranted(AuthorizationContext ctx, String... assignedRoles) Returnstruewhen access to resource described in theAuthorizationContextshould be granted to assigned roles.
- 
Method Details- 
authenticateAuthenticates user described by givenAuthenticationContextand returns role names assigned.- Parameters:
- ctx- authentication context
- Returns:
- array of role names assigned to authenticated user
- Throws:
- LoginException- authentication fails
 
- 
isAccessGrantedReturnstruewhen access to resource described in theAuthorizationContextshould be granted to assigned roles. The role names are typically the ones returned by theauthenticate(AuthenticationContext)method call.- Parameters:
- ctx- authorization context
- assignedRoles- role names to be checked for access to the resource
- Returns:
- truewhen the access is granted
 
 
-