public interface SecurityContext
ICredentialsFactory
, IPermissionPolicy
etc, to creating LoginContext
es
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 . |
LoginContext createMemberLoginContext(Credentials credentials) throws LoginException
LoginContext
.credentials
- member credentialsLoginContext
LoginException
LoginContext createClientLoginContext(Credentials credentials) throws LoginException
LoginContext
.credentials
- client credentialsLoginContext
LoginException
ICredentialsFactory getCredentialsFactory()
ICredentialsFactory
.ICredentialsFactory
void checkPermission(Subject subject, Permission permission) throws AccessControlException
Subject
has been granted specified permission or not.permission
- AccessControlException
<V> SecureCallable<V> createSecureCallable(Subject subject, Callable<V> callable)
V
- return type of callablesubject
- callable
- void destroy()
SecurityContext
and all security elements.Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.