public class NoOpIgniteSecurityProcessor extends GridProcessorAdapter implements IgniteSecurity
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) |
assertParameter, 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.withContext in interface IgniteSecuritysecCtx - 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.withContext in interface IgniteSecuritynodeId - Node id.public SecurityContext securityContext()
securityContext in interface IgniteSecurityOperationSecurityContext.public SecurityContext authenticateNode(ClusterNode node, SecurityCredentials cred)
GridSecurityProcessor.authenticateNode(org.apache.ignite.cluster.ClusterNode,
org.apache.ignite.plugin.security.SecurityCredentials)authenticateNode in interface IgniteSecuritypublic boolean isGlobalNodeAuthentication()
GridSecurityProcessor.isGlobalNodeAuthentication()isGlobalNodeAuthentication in interface IgniteSecuritypublic SecurityContext authenticate(AuthenticationContext ctx)
GridSecurityProcessor.authenticate(AuthenticationContext)authenticate in interface IgniteSecuritypublic Collection<SecuritySubject> authenticatedSubjects()
GridSecurityProcessor.authenticatedSubjects()authenticatedSubjects in interface IgniteSecuritypublic SecuritySubject authenticatedSubject(UUID subjId)
GridSecurityProcessor.authenticatedSubject(UUID)authenticatedSubject in interface IgniteSecuritypublic void onSessionExpired(UUID subjId)
GridSecurityProcessor.onSessionExpired(UUID)onSessionExpired in interface IgniteSecuritypublic void authorize(String name, SecurityPermission perm) throws SecurityException
authorize in interface IgniteSecurityname - Cache name or task class name.perm - Permission to authorize.SecurityException - If security check failed.public IgniteSandbox sandbox()
sandbox in interface IgniteSecuritypublic boolean enabled()
enabled in interface IgniteSecurity@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
createUser in interface IgniteSecuritylogin - Login of the user to be created.pwd - User password.IgniteCheckedException - If error occurred.public void alterUser(String login, char[] pwd) throws IgniteCheckedException
alterUser in interface IgniteSecuritylogin - 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
dropUser in interface IgniteSecuritylogin - Login of the user to be dropped.IgniteCheckedException - If error occurred.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021