public class NoOpIgniteSecurityProcessor extends IgniteSecurityAdapter
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Field and Description |
|---|---|
static String |
SECURITY_DISABLED_ERROR_MSG
Error message that occurs when trying to perform security operations if security disabled.
|
ctx, diagnosticLog, log| Constructor and Description |
|---|
NoOpIgniteSecurityProcessor(GridKernalContext ctx) |
isSystemTypeassertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitauthorizepublic static final String SECURITY_DISABLED_ERROR_MSG
public NoOpIgniteSecurityProcessor(GridKernalContext ctx)
ctx - Grid kernal context.public OperationSecurityContext withContext(SecurityContext secCtx)
OperationSecurityContext. All calls of methods IgniteSecurity.authorize(String, SecurityPermission) or IgniteSecurity.authorize(SecurityPermission) will be processed into the context of passed SecurityContext until
holder OperationSecurityContext will be closed.secCtx - Security Context.public OperationSecurityContext withContext(UUID nodeId)
OperationSecurityContext. All calls of methods IgniteSecurity.authorize(String, SecurityPermission) or IgniteSecurity.authorize(SecurityPermission) will be processed into the context of SecurityContext that is owned by
the node with given nodeId until holder OperationSecurityContext will be closed.nodeId - Node id.public boolean isDefaultContext()
True if current thread executed in default security context.public SecurityContext securityContext()
OperationSecurityContext.public SecurityContext authenticateNode(ClusterNode node, SecurityCredentials cred)
public boolean isGlobalNodeAuthentication()
GridSecurityProcessor.isGlobalNodeAuthentication()public SecurityContext authenticate(AuthenticationContext ctx)
GridSecurityProcessor.authenticate(AuthenticationContext)public Collection<SecuritySubject> authenticatedSubjects()
GridSecurityProcessor.authenticatedSubjects()public SecuritySubject authenticatedSubject(UUID subjId)
GridSecurityProcessor.authenticatedSubject(UUID)public void onSessionExpired(UUID subjId)
GridSecurityProcessor.onSessionExpired(UUID)public void authorize(String name, SecurityPermission perm) throws SecurityException
name - Cache name or task class name.perm - Permission to authorize.SecurityException - If security check failed.public IgniteSandbox sandbox()
public boolean enabled()
@Nullable public @Nullable IgniteNodeValidationResult validateNode(ClusterNode node)
validateNode in interface GridComponentvalidateNode in class GridProcessorAdapternode - Joining node.null in case of success.@Nullable public @Nullable IgniteNodeValidationResult validateNode(ClusterNode node, DiscoveryDataBag.JoiningNodeDiscoveryData discoData)
validateNode in interface GridComponentvalidateNode in class GridProcessorAdapternode - Joining node.discoData - Joining node discovery data.null in case of success.public void createUser(String login, char[] pwd) throws IgniteCheckedException
login - Login of the user to be created.pwd - User password.IgniteCheckedException - If error occurred.public void alterUser(String login, char[] pwd) throws IgniteCheckedException
login - Login of the user which password should be altered.pwd - User password to alter.IgniteCheckedException - If error occurred.public void dropUser(String login) throws IgniteCheckedException
login - Login of the user to be dropped.IgniteCheckedException - If error occurred.public void onLocalJoin()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023