public abstract class ServerMessageBlock2 extends Object implements CommonServerMessageBlock
| Modifier and Type | Field and Description |
|---|---|
static int |
SMB2_FLAGS_ASYNC_COMMAND |
static int |
SMB2_FLAGS_DFS_OPERATIONS |
static int |
SMB2_FLAGS_PRIORITY_MASK |
static int |
SMB2_FLAGS_RELATED_OPERATIONS |
static int |
SMB2_FLAGS_REPLAY_OPERATION |
static int |
SMB2_FLAGS_SERVER_TO_REDIR |
static int |
SMB2_FLAGS_SIGNED |
| Modifier and Type | Method and Description |
|---|---|
void |
addFlags(int flag) |
boolean |
chain(ServerMessageBlock2 n) |
void |
clearFlags(int flag) |
int |
decode(byte[] buffer,
int bufferIndex)
Decode message data from the given byte array
|
int |
decode(byte[] buffer,
int bufferIndex,
boolean compound) |
int |
encode(byte[] dst,
int dstIndex) |
boolean |
equals(Object obj) |
long |
getAsyncId() |
int |
getCommand() |
int |
getCredit() |
int |
getCreditCharge() |
Smb2SigningDigest |
getDigest() |
byte |
getErrorContextCount() |
byte[] |
getErrorData() |
int |
getFlags() |
int |
getHeaderStart() |
int |
getLength() |
long |
getMid() |
int |
getNextCommandOffset() |
byte[] |
getRawPayload() |
ServerMessageBlock2Response |
getResponse() |
long |
getSessionId() |
int |
getStatus() |
int |
getTreeId() |
int |
hashCode() |
boolean |
isAsync() |
boolean |
isRetainPayload() |
void |
reset() |
void |
retainPayload()
Indicate that this message should retain it's raw payload
|
void |
setAsyncId(long asyncId) |
void |
setCommand(int command) |
void |
setCredit(int credit) |
void |
setDigest(SMBSigningDigest digest) |
void |
setExtendedSecurity(boolean extendedSecurity) |
void |
setMid(long mid) |
void |
setRawPayload(byte[] rawPayload) |
void |
setReadSize(int readSize) |
void |
setResponse(CommonServerMessageBlockResponse msg) |
void |
setSessionId(long sessionId) |
void |
setTreeId(int treeId) |
void |
setUid(int uid) |
String |
toString() |
public static final int SMB2_FLAGS_SERVER_TO_REDIR
public static final int SMB2_FLAGS_ASYNC_COMMAND
public static final int SMB2_FLAGS_RELATED_OPERATIONS
public static final int SMB2_FLAGS_SIGNED
public static final int SMB2_FLAGS_PRIORITY_MASK
public static final int SMB2_FLAGS_DFS_OPERATIONS
public static final int SMB2_FLAGS_REPLAY_OPERATION
public void reset()
reset in interface CommonServerMessageBlockpublic final int getCommand()
getCommand in interface CommonServerMessageBlockpublic final int getNextCommandOffset()
public void setReadSize(int readSize)
readSize - the readSize to setpublic boolean isAsync()
public final void setCommand(int command)
setCommand in interface CommonServerMessageBlockcommand - the command to setpublic final int getTreeId()
public final void setTreeId(int treeId)
treeId - the treeId to setpublic final long getAsyncId()
public final void setAsyncId(long asyncId)
asyncId - the asyncId to setpublic final int getCredit()
public final void setCredit(int credit)
credit - the credit to setpublic final int getCreditCharge()
public void retainPayload()
MessageretainPayload in interface Messagepublic boolean isRetainPayload()
isRetainPayload in interface Messagepublic byte[] getRawPayload()
getRawPayload in interface Messagepublic void setRawPayload(byte[] rawPayload)
setRawPayload in interface Messagepublic Smb2SigningDigest getDigest()
getDigest in interface CommonServerMessageBlockCommonServerMessageBlock.getDigest()public void setDigest(SMBSigningDigest digest)
setDigest in interface CommonServerMessageBlockCommonServerMessageBlock.setDigest(jcifs.internal.SMBSigningDigest)public final int getStatus()
public long getSessionId()
public final void setSessionId(long sessionId)
setSessionId in interface CommonServerMessageBlocksessionId - the sessionId to setpublic void setExtendedSecurity(boolean extendedSecurity)
setExtendedSecurity in interface CommonServerMessageBlockCommonServerMessageBlock.setExtendedSecurity(boolean)public void setUid(int uid)
setUid in interface CommonServerMessageBlockCommonServerMessageBlock.setUid(int)public final int getFlags()
public final void addFlags(int flag)
flag - public final void clearFlags(int flag)
flag - public final long getMid()
getMid in interface CommonServerMessageBlockpublic final void setMid(long mid)
setMid in interface CommonServerMessageBlockmid - the mid to setpublic boolean chain(ServerMessageBlock2 n)
n - public ServerMessageBlock2Response getResponse()
getResponse in interface CommonServerMessageBlockpublic void setResponse(CommonServerMessageBlockResponse msg)
setResponse in interface CommonServerMessageBlockCommonServerMessageBlock.setResponse(jcifs.internal.CommonServerMessageBlockResponse)public final byte[] getErrorData()
public final byte getErrorContextCount()
public final int getHeaderStart()
public final int getLength()
public int encode(byte[] dst,
int dstIndex)
encode in interface CommonServerMessageBlockpublic int decode(byte[] buffer,
int bufferIndex)
throws SMBProtocolDecodingException
CommonServerMessageBlockdecode in interface CommonServerMessageBlockSMBProtocolDecodingExceptionpublic int decode(byte[] buffer,
int bufferIndex,
boolean compound)
throws SMBProtocolDecodingException
buffer - bufferIndex - compound - SMBProtocolDecodingExceptionCopyright © 2021. All rights reserved.