public interface GridSecurityManager extends GridManager
| Modifier and Type | Method and Description |
|---|---|
GridSecurityContext |
authenticate(GridAuthenticationContext ctx)
Authenticates subject via underlying
GridAuthenticationSpis. |
GridSecuritySubject |
authenticatedSubject(UUID subjId)
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, enabledcollectDiscoveryData, onDiscoveryDataReceived, onKernalStart, onKernalStop, printMemoryStats, start, stop, validateNodeboolean securityEnabled()
True if authentication check is enabled.GridSecurityContext authenticateNode(GridNode node, GridSecurityCredentials cred) throws GridException
GridAuthenticationSpis.node - Node id to authenticate.cred - Security credentials.True if succeeded, false otherwise.GridException - If error occurred.GridSecurityContext authenticate(GridAuthenticationContext ctx) throws GridException
GridAuthenticationSpis.ctx - Authentication context.True if succeeded, false otherwise.GridException - If error occurred.Collection<GridSecuritySubject> authenticatedSubjects() throws GridException
GridException - If error occurred.GridSecuritySubject authenticatedSubject(UUID subjId) throws GridException
subjId - Subject ID.GridException - If error occurred.void authorize(String name, GridSecurityPermission perm, @Nullable GridSecurityContext securityCtx) throws GridSecurityException
name - Cache name or task class name.perm - Permission to authorize.securityCtx - Optional security context.GridSecurityException - If security check failed.void onSessionExpired(UUID subjId)
subjId - Subject ID.Copyright © 2014. All rights reserved.