public class AuthenticationMessageTask extends AuthenticationBaseMessageTask<com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters>
clientSerializationVersion, credentials, principal
clientEngine, clientMessage, connection, endpoint, endpointManager, logger, nodeEngine, parameters, serializationService
Constructor and Description |
---|
AuthenticationMessageTask(ClientMessage clientMessage,
Node node,
Connection connection) |
Modifier and Type | Method and Description |
---|---|
protected com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters |
decodeClientMessage(ClientMessage clientMessage) |
protected ClientMessage |
encodeAuth(byte status,
Address thisAddress,
String uuid,
String ownerUuid,
byte version) |
protected ClientMessage |
encodeResponse(Object response) |
protected String |
getClientType() |
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() |
call, getEndpoint, getRequiredPermission, isAuthenticationMessage
processMessage
getDistributedObjectType, getPartitionId, getService, run, sendClientMessage, sendClientMessage, sendClientMessage, sendResponse
public AuthenticationMessageTask(ClientMessage clientMessage, Node node, Connection connection)
protected com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters decodeClientMessage(ClientMessage clientMessage)
decodeClientMessage
in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters>
protected ClientMessage encodeResponse(Object response)
encodeResponse
in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters>
protected ClientMessage encodeAuth(byte status, Address thisAddress, String uuid, String ownerUuid, byte version)
encodeAuth
in class AuthenticationBaseMessageTask<com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters>
public String getServiceName()
getServiceName
in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters>
public String getDistributedObjectName()
SecureRequest
SecurityInterceptor
getDistributedObjectName
in interface SecureRequest
getDistributedObjectName
in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters>
public String getMethodName()
SecureRequest
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.getMethodName
in interface SecureRequest
getMethodName
in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters>
public Object[] getParameters()
SecureRequest
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 lazilygetParameters
in interface SecureRequest
getParameters
in class AbstractMessageTask<com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters>
protected boolean isOwnerConnection()
isOwnerConnection
in class AuthenticationBaseMessageTask<com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters>
protected String getClientType()
getClientType
in class AuthenticationBaseMessageTask<com.hazelcast.client.impl.protocol.codec.ClientAuthenticationCodec.RequestParameters>
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.