@GridSpiInfo(author="GridGain Systems", url="www.gridgain.com", email="support@gridgain.com", version="6.0.2.${gg.ver.build}") @GridSpiNoop @GridSpiMultipleInstancesSupport(value=true) public class GridNoopAuthenticationSpi extends GridSpiAdapter implements GridAuthenticationSpi, GridNoopAuthenticationSpiMBean
GridNoopAuthenticationSpi authSpi = new GridNoopAuthenticationSpi(); GridConfiguration cfg = new GridConfiguration(); // Override default authentication SPI. cfg.setAuthenticationSpi(authSpi); // Start grid. GridGain.start(cfg);
<bean id="grid.custom.cfg" class="org.gridgain.grid.GridConfiguration" singleton="true">
...
<property name="authenticationSpi">
<bean class="org.gridgain.grid.spi.authentication.noop.GridNoopAuthenticationSpi"/>
</property>
...
</bean>
For information about Spring framework visit www.springframework.org
| Constructor and Description |
|---|
GridNoopAuthenticationSpi() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(GridSecuritySubjectType subjType,
byte[] subjId,
Object creds)
Authenticates a given subject (either node or remote client).
|
void |
spiStart(String gridName)
This method is called to start SPI.
|
void |
spiStop()
This method is called to stop SPI.
|
boolean |
supported(GridSecuritySubjectType subjType)
Checks if given subject is supported by this SPI.
|
String |
toString() |
assertParameter, checkConfigurationConsistency0, configInfo, createSpiAttributeName, getAuthor, getConsistentAttributeNames, getGridGainHome, getLocalNodeId, getName, getNodeAttributes, getSpiContext, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted, getVendorEmail, getVendorUrl, getVersion, injectables, onContextDestroyed, onContextDestroyed0, onContextInitialized, onContextInitialized0, registerMBean, setJson, setName, startInfo, startStopwatch, stopInfo, unregisterMBeanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getNodeAttributes, onContextDestroyed, onContextInitializedsetJsongetAuthor, getGridGainHome, getLocalNodeId, getName, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted, getVendorEmail, getVendorUrl, getVersionpublic boolean supported(GridSecuritySubjectType subjType)
supported in interface GridAuthenticationSpisubjType - Subject type.True if subject type is supported, false otherwise.public boolean authenticate(GridSecuritySubjectType subjType, byte[] subjId, @Nullable Object creds) throws GridSpiException
authenticate in interface GridAuthenticationSpisubjType - Subject type.subjId - Unique subject ID such as local or remote node ID, client ID, etc.creds - Authentication parameters (may be null or empty based on implementation).
The map of parameters may be different for different subject types. Refer to specific
authentication SPI documentation for a list of required parameters.true if authentication passed, false if authentication failed.GridSpiException - If authentication resulted in system error.
Note that bad credentials should not cause this exception.public void spiStart(String gridName) throws GridSpiException
spiStart in interface GridSpigridName - Name of grid instance this SPI is being started for
(null for default grid).GridSpiException - Throws in case of any error during SPI start.public void spiStop()
throws GridSpiException
Note that this method can be called at any point including during recovery of failed start. It should make no assumptions on what state SPI will be in when this method is called.
spiStop in interface GridSpiGridSpiException - Thrown in case of any error during SPI stop.
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014