public interface GridSecurityProcessor extends GridProcessor
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Method and Description |
|---|---|
default void |
alterUser(String login,
char[] pwd)
Alters password of user with the specified login.
|
SecurityContext |
authenticate(AuthenticationContext ctx)
Authenticates subject via underlying Authenticator.
|
SecuritySubject |
authenticatedSubject(UUID subjId)
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.
|
default void |
createUser(String login,
char[] pwd)
Creates user with the specified login and password.
|
default void |
dropUser(String login)
Drops user with the specified login.
|
boolean |
enabled()
Deprecated.
To determine the security mode use
IgniteSecurity.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.
|
default boolean |
sandboxEnabled()
If this method returns true and
SecurityManager is installed,
then the user-defined code will be run inside the Sandbox. |
default SecurityContext |
securityContext(UUID subjId)
Gets security context for authenticated nodes and thin clients.
|
collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, validateNode, validateNodeSecurityContext authenticateNode(ClusterNode node, SecurityCredentials cred) throws IgniteCheckedException
node - Node id to authenticate.cred - Security credentials.True if succeeded, false otherwise.IgniteCheckedException - If error occurred.boolean isGlobalNodeAuthentication()
True if all nodes should run authentication process, false otherwise.SecurityContext authenticate(AuthenticationContext ctx) throws IgniteCheckedException
ctx - Authentication context.True if succeeded, false otherwise.IgniteCheckedException - If error occurred.Collection<SecuritySubject> authenticatedSubjects() throws IgniteCheckedException
IgniteCheckedException - If error occurred.SecuritySubject authenticatedSubject(UUID subjId) throws IgniteCheckedException
subjId - Subject ID.IgniteCheckedException - If error occurred.default SecurityContext securityContext(UUID subjId)
subjId - Security subject id.void authorize(String name, SecurityPermission perm, SecurityContext securityCtx) throws SecurityException
name - Cache name or task class name.perm - Permission to authorize.securityCtx - Optional security context.SecurityException - If security check failed.void onSessionExpired(UUID subjId)
subjId - Subject ID.@Deprecated boolean enabled()
IgniteSecurity.enabled().default boolean sandboxEnabled()
SecurityManager is installed,
then the user-defined code will be run inside the Sandbox.IgniteSandboxdefault void createUser(String login, char[] pwd) throws IgniteCheckedException
login - Login of the user to be created.pwd - User password.IgniteCheckedException - If error occurred.default 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.default void dropUser(String login) throws IgniteCheckedException
login - 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