Package com.hazelcast.access
Interface AccessControlService
public interface AccessControlService
Service for pluggable authentication and authorization.
- 
Method Summary
Modifier 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
- 
authenticate
Authenticates 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
 - 
isAccessGranted
Returnstruewhen 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 contextassignedRoles- role names to be checked for access to the resource- Returns:
 truewhen the access is granted
 
 -