public class GridOsSecurityProcessor extends GridProcessorAdapter implements GridSecurityProcessor
GridSecurityProcessor.GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
GridOsSecurityProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
SecurityContext |
authenticate(AuthenticationContext authCtx)
Authenticates subject via underlying Authenticator.
|
SecuritySubject |
authenticatedSubject(UUID nodeId)
Gets authenticated node subject.
|
Collection<SecuritySubject> |
authenticatedSubjects()
Gets collection of authenticated nodes.
|
SecurityContext |
authenticateNode(ClusterNode node,
SecurityCredentials cred)
Authenticates grid node with it's attributes via underlying Authenticator.
|
void |
authorize(String name,
SecurityPermission perm,
SecurityContext securityCtx)
Authorizes grid operation.
|
boolean |
enabled() |
boolean |
isGlobalNodeAuthentication()
Gets flag indicating whether all nodes or coordinator only should run the authentication for joining node.
|
void |
onSessionExpired(UUID subjId)
Callback invoked when subject session got expired.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, toString, validateNode, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcollectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, validateNode, validateNodepublic GridOsSecurityProcessor(GridKernalContext ctx)
ctx - Kernal context.public SecurityContext authenticateNode(ClusterNode node, SecurityCredentials cred) throws IgniteCheckedException
authenticateNode in interface GridSecurityProcessornode - Node id to authenticate.cred - Security credentials.True if succeeded, false otherwise.IgniteCheckedException - If error occurred.public boolean isGlobalNodeAuthentication()
isGlobalNodeAuthentication in interface GridSecurityProcessorTrue if all nodes should run authentication process, false otherwise.public SecurityContext authenticate(AuthenticationContext authCtx) throws IgniteCheckedException
authenticate in interface GridSecurityProcessorauthCtx - Authentication context.True if succeeded, false otherwise.IgniteCheckedException - If error occurred.public Collection<SecuritySubject> authenticatedSubjects()
authenticatedSubjects in interface GridSecurityProcessorpublic SecuritySubject authenticatedSubject(UUID nodeId)
authenticatedSubject in interface GridSecurityProcessornodeId - Subject ID.public void authorize(String name, SecurityPermission perm, @Nullable SecurityContext securityCtx) throws SecurityException
authorize in interface GridSecurityProcessorname - Cache name or task class name.perm - Permission to authorize.securityCtx - Optional security context.SecurityException - If security check failed.public void onSessionExpired(UUID subjId)
onSessionExpired in interface GridSecurityProcessorsubjId - Subject ID.public boolean enabled()
enabled in interface GridSecurityProcessor
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018