com.hazelcast.client.impl.protocol.task
Class AuthenticationMessageTask

java.lang.Object
  extended by com.hazelcast.client.impl.protocol.task.AbstractMessageTask<P>
      extended by com.hazelcast.client.impl.protocol.task.AbstractCallableMessageTask<P>
          extended by com.hazelcast.client.impl.protocol.task.AuthenticationBaseMessageTask<AuthenticationParameters>
              extended by com.hazelcast.client.impl.protocol.task.AuthenticationMessageTask
All Implemented Interfaces:
SecureRequest, MessageTask, PartitionSpecificRunnable, Runnable

public class AuthenticationMessageTask
extends AuthenticationBaseMessageTask<AuthenticationParameters>

Default Authentication with username password handling task


Field Summary
 
Fields inherited from class com.hazelcast.client.impl.protocol.task.AuthenticationBaseMessageTask
credentials, principal
 
Fields inherited from class com.hazelcast.client.impl.protocol.task.AbstractMessageTask
clientEngine, clientMessage, connection, endpoint, endpointManager, logger, nodeEngine, parameters, serializationService
 
Constructor Summary
AuthenticationMessageTask(ClientMessage clientMessage, Node node, Connection connection)
           
 
Method Summary
protected  boolean authenticate()
           
protected  AuthenticationParameters decodeClientMessage(ClientMessage clientMessage)
           
 String getDistributedObjectName()
          Used for SecurityInterceptor
 String getMethodName()
          Used for SecurityInterceptor Method name which called via a distributedObject for map.put, methodName will be 'put' For requests which do not produced via a distributedObject should return null, for example internal client.
 Object[] getParameters()
          Used for SecurityInterceptor Parameters passed to the method by a distributedObject for map.put(key, value) parameters should be 'key' and 'value' parameters can be in binary or object form, underlying implementation will de-serialize lazily
 String getServiceName()
           
protected  boolean isOwnerConnection()
           
 
Methods inherited from class com.hazelcast.client.impl.protocol.task.AuthenticationBaseMessageTask
call, getEndpoint, getRequiredPermission
 
Methods inherited from class com.hazelcast.client.impl.protocol.task.AbstractCallableMessageTask
processMessage
 
Methods inherited from class com.hazelcast.client.impl.protocol.task.AbstractMessageTask
getDistributedObjectType, getPartitionId, getService, run, sendClientMessage, sendClientMessage, sendClientMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationMessageTask

public AuthenticationMessageTask(ClientMessage clientMessage,
                                 Node node,
                                 Connection connection)
Method Detail

decodeClientMessage

protected AuthenticationParameters decodeClientMessage(ClientMessage clientMessage)
Specified by:
decodeClientMessage in class AbstractMessageTask<AuthenticationParameters>

getServiceName

public String getServiceName()
Specified by:
getServiceName in class AbstractMessageTask<AuthenticationParameters>

getDistributedObjectName

public String getDistributedObjectName()
Description copied from interface: SecureRequest
Used for SecurityInterceptor

Specified by:
getDistributedObjectName in interface SecureRequest
Specified by:
getDistributedObjectName in class AbstractMessageTask<AuthenticationParameters>
Returns:

getMethodName

public String getMethodName()
Description copied from interface: SecureRequest
Used for SecurityInterceptor Method name which called via a distributedObject for map.put, methodName will be 'put' For requests which do not produced via a distributedObject should return null, for example internal client.

Specified by:
getMethodName in interface SecureRequest
Specified by:
getMethodName in class AbstractMessageTask<AuthenticationParameters>
Returns:

getParameters

public Object[] getParameters()
Description copied from interface: SecureRequest
Used for SecurityInterceptor Parameters passed to the method by a distributedObject for map.put(key, value) parameters should be 'key' and 'value' parameters can be in binary or object form, underlying implementation will de-serialize lazily

Specified by:
getParameters in interface SecureRequest
Specified by:
getParameters in class AbstractMessageTask<AuthenticationParameters>
Returns:

authenticate

protected boolean authenticate()
Specified by:
authenticate in class AuthenticationBaseMessageTask<AuthenticationParameters>

isOwnerConnection

protected boolean isOwnerConnection()
Specified by:
isOwnerConnection in class AuthenticationBaseMessageTask<AuthenticationParameters>


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.