public interface SecurityContext
ICredentialsFactory, IPermissionPolicy etc, to creating LoginContextes
 for member and client authentications and checking permissions for client operations.| Modifier and Type | Method and Description | 
|---|---|
void | 
checkPermission(Subject subject,
               Permission permission)
Checks whether current  
Subject has been granted specified permission or not. | 
LoginContext | 
createClientLoginContext(Credentials credentials)
Creates client  
LoginContext. | 
LoginContext | 
createMemberLoginContext(Credentials credentials)
Creates member  
LoginContext. | 
<V> SecureCallable<V> | 
createSecureCallable(Subject subject,
                    Callable<V> callable)
Creates secure callable that runs in a sandbox. 
 | 
void | 
destroy()
Destroys  
SecurityContext and all security elements. | 
ICredentialsFactory | 
getCredentialsFactory()
Returns current  
ICredentialsFactory. | 
void | 
interceptAfter(Credentials credentials,
              String serviceName,
              String objectName,
              String methodName)
intercepts a request after process if any  
SecurityInterceptor configured
 Any exception thrown during interception will be ignored | 
void | 
interceptBefore(Credentials credentials,
               String serviceName,
               String objectName,
               String methodName,
               Object[] parameters)
intercepts a request before process if any  
SecurityInterceptor configured | 
void | 
refreshPermissions(Set<PermissionConfig> permissionConfigs)  | 
LoginContext createMemberLoginContext(Credentials credentials) throws LoginException
LoginContext.credentials - member credentialsLoginContextLoginExceptionLoginContext createClientLoginContext(Credentials credentials) throws LoginException
LoginContext.credentials - client credentialsLoginContextLoginExceptionICredentialsFactory getCredentialsFactory()
ICredentialsFactory.ICredentialsFactoryvoid checkPermission(Subject subject, Permission permission) throws AccessControlException
Subject has been granted specified permission or not.subject - the current subjectpermission - the specified permission for the subjectAccessControlExceptionvoid interceptBefore(Credentials credentials, String serviceName, String objectName, String methodName, Object[] parameters) throws AccessControlException
SecurityInterceptor configuredcredentials - serviceName - objectName - methodName - parameters - AccessControlExceptionvoid interceptAfter(Credentials credentials, String serviceName, String objectName, String methodName)
SecurityInterceptor configured
 Any exception thrown during interception will be ignoredcredentials - serviceName - objectName - methodName - <V> SecureCallable<V> createSecureCallable(Subject subject, Callable<V> callable)
V - return type of callablesubject - callable - void destroy()
SecurityContext and all security elements.void refreshPermissions(Set<PermissionConfig> permissionConfigs)
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.