public abstract class ClientListenerAbstractConnectionContext extends Object implements ClientListenerConnectionContext
| Modifier and Type | Field and Description |
|---|---|
protected GridKernalContext |
ctx
Kernal context.
|
protected Map<String,String> |
userAttrs
User attributes.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ClientListenerAbstractConnectionContext(GridKernalContext ctx,
long connId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected AuthorizationContext |
authenticate(Certificate[] certificates,
String user,
String pwd)
Perform authentication.
|
@Nullable AuthorizationContext |
authorizationContext()
Return connection authorization context.
|
long |
connectionId() |
GridKernalContext |
kernalContext() |
void |
onDisconnected()
Called whenever client is disconnected due to correct connection close
or due to
IOException during network operations. |
@Nullable SecurityContext |
securityContext() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultVersion, handler, initializeFromHandshake, isVersionSupported, parserprotected final GridKernalContext ctx
protected ClientListenerAbstractConnectionContext(GridKernalContext ctx, long connId)
ctx - Kernal context.connId - Connection id.public GridKernalContext kernalContext()
@Nullable public @Nullable SecurityContext securityContext()
securityContext in interface ClientListenerConnectionContext@Nullable public @Nullable AuthorizationContext authorizationContext()
authorizationContext in interface ClientListenerConnectionContextpublic long connectionId()
connectionId in interface ClientListenerConnectionContextprotected AuthorizationContext authenticate(Certificate[] certificates, String user, String pwd) throws IgniteCheckedException
IgniteCheckedException - If failed.public void onDisconnected()
IOException during network operations.onDisconnected in interface ClientListenerConnectionContext
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020