public class GridOsSecurityManager extends GridNoopManagerAdapter implements GridSecurityManager
GridSecurityManager.| Constructor and Description |
|---|
GridOsSecurityManager(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
GridSecurityContext |
authenticate(GridAuthenticationContext authCtx)
Authenticates subject via underlying
GridAuthenticationSpis. |
GridSecuritySubject |
authenticatedSubject(UUID nodeId)
Gets authenticated node subject.
|
Collection<GridSecuritySubject> |
authenticatedSubjects()
Gets collection of authenticated nodes.
|
GridSecurityContext |
authenticateNode(GridNode node,
GridSecurityCredentials cred)
Authenticates grid node with it's attributes via underlying
GridAuthenticationSpis. |
void |
authorize(String name,
GridSecurityPermission perm,
GridSecurityContext securityCtx)
Authorizes grid operation.
|
void |
onSessionExpired(UUID subjId)
Callback invoked when subject session got expired.
|
boolean |
securityEnabled()
Checks if security check is enabled.
|
addSpiAttributes, collectDiscoveryData, enabled, onDiscoveryDataReceived, onKernalStart, onKernalStop, printMemoryStats, start, stop, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSpiAttributes, enabledcollectDiscoveryData, onDiscoveryDataReceived, onKernalStart, onKernalStop, printMemoryStats, start, stop, validateNodepublic GridOsSecurityManager(GridKernalContext ctx)
ctx - Kernal context.public boolean securityEnabled()
securityEnabled in interface GridSecurityManagerTrue if authentication check is enabled.public GridSecurityContext authenticateNode(GridNode node, GridSecurityCredentials cred) throws GridException
GridAuthenticationSpis.authenticateNode in interface GridSecurityManagernode - Node id to authenticate.cred - Security credentials.True if succeeded, false otherwise.GridException - If error occurred.public GridSecurityContext authenticate(GridAuthenticationContext authCtx) throws GridException
GridAuthenticationSpis.authenticate in interface GridSecurityManagerauthCtx - Authentication context.True if succeeded, false otherwise.GridException - If error occurred.public Collection<GridSecuritySubject> authenticatedSubjects()
authenticatedSubjects in interface GridSecurityManagerpublic GridSecuritySubject authenticatedSubject(UUID nodeId)
authenticatedSubject in interface GridSecurityManagernodeId - Subject ID.public void authorize(String name, GridSecurityPermission perm, @Nullable GridSecurityContext securityCtx) throws GridSecurityException
authorize in interface GridSecurityManagername - Cache name or task class name.perm - Permission to authorize.securityCtx - Optional security context.GridSecurityException - If security check failed.public void onSessionExpired(UUID subjId)
onSessionExpired in interface GridSecurityManagersubjId - Subject ID.Copyright © 2014. All rights reserved.