public abstract class SASLBaseOperationImpl extends OperationImpl
Modifier and Type | Field and Description |
---|---|
protected CallbackHandler |
cbh |
protected byte[] |
challenge |
protected String[] |
mech |
protected Map<String,?> |
props |
protected String |
serverName |
DUMMY_OPCODE, EMPTY_BYTES, ERR_2BIG, ERR_BUSY, ERR_DELTA_BADVAL, ERR_EXISTS, ERR_INTERNAL, ERR_INVAL, ERR_NO_MEM, ERR_NOT_FOUND, ERR_NOT_MY_VBUCKET, ERR_NOT_STORED, ERR_NOT_SUPPORTED, ERR_TEMP_FAIL, ERR_UNKNOWN_COMMAND, errorCode, keyLen, MIN_RECV_PACKET, opaque, REQ_MAGIC, RES_MAGIC, responseCas, responseCmd, responseOpaque, STATUS_OK, SUCCESS, vbucket
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT
Constructor and Description |
---|
SASLBaseOperationImpl(byte c,
String[] m,
byte[] ch,
String s,
Map<String,?> p,
CallbackHandler h,
OperationCallback cb) |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
buildResponse(SaslClient sc) |
protected void |
decodePayload(byte[] pl)
Decode the given payload for this command.
|
protected void |
finishedPayload(byte[] pl) |
void |
initialize()
Initialize this operation.
|
String |
toString() |
getErrorMsg, getStatusForErrorCode, opaqueIsValid, prepareBuffer, readFromBuffer, resetInput
addClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleError, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setCloneCount, setHandlingNode, timeOut, transitionState, wasCancelled, writeComplete, writing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setCloneCount, setHandlingNode, timeOut, writeComplete, writing
protected final String[] mech
protected final byte[] challenge
protected final String serverName
protected final CallbackHandler cbh
public SASLBaseOperationImpl(byte c, String[] m, byte[] ch, String s, Map<String,?> p, CallbackHandler h, OperationCallback cb)
public void initialize()
Operation
initialize
in interface Operation
initialize
in class BaseOperationImpl
protected abstract byte[] buildResponse(SaslClient sc) throws SaslException
SaslException
protected void decodePayload(byte[] pl)
OperationImpl
decodePayload
in class OperationImpl
pl
- the payload.protected void finishedPayload(byte[] pl) throws IOException
finishedPayload
in class OperationImpl
IOException
public String toString()
toString
in class OperationImpl
Copyright © 2018. All rights reserved.