Package jcifs.internal
Interface CommonServerMessageBlock
-
- All Superinterfaces:
Message
- All Known Subinterfaces:
CommonServerMessageBlockRequest
,CommonServerMessageBlockResponse
,NotifyResponse
,Request<T>
,RequestWithPath
,SmbNegotiationResponse
,TreeConnectResponse
- All Known Implementing Classes:
AndXServerMessageBlock
,NetServerEnum2
,NetServerEnum2Response
,NetShareEnum
,NetShareEnumResponse
,NtTransNotifyChange
,NtTransNotifyChangeResponse
,NtTransQuerySecurityDesc
,NtTransQuerySecurityDescResponse
,ServerMessageBlock
,ServerMessageBlock2
,ServerMessageBlock2Request
,ServerMessageBlock2Response
,Smb2CancelRequest
,Smb2ChangeNotifyRequest
,Smb2ChangeNotifyResponse
,Smb2CloseRequest
,Smb2CloseResponse
,Smb2CreateRequest
,Smb2CreateResponse
,Smb2EchoRequest
,Smb2EchoResponse
,Smb2FlushRequest
,Smb2FlushResponse
,Smb2IoctlRequest
,Smb2IoctlResponse
,Smb2LockRequest
,Smb2LockResponse
,Smb2LogoffRequest
,Smb2LogoffResponse
,Smb2NegotiateRequest
,Smb2NegotiateResponse
,Smb2OplockBreakNotification
,Smb2QueryDirectoryRequest
,Smb2QueryDirectoryResponse
,Smb2QueryInfoRequest
,Smb2QueryInfoResponse
,Smb2ReadRequest
,Smb2ReadResponse
,Smb2SessionSetupRequest
,Smb2SessionSetupResponse
,Smb2SetInfoRequest
,Smb2SetInfoResponse
,Smb2TreeConnectRequest
,Smb2TreeConnectResponse
,Smb2TreeDisconnectRequest
,Smb2TreeDisconnectResponse
,Smb2WriteRequest
,Smb2WriteResponse
,SmbComBlankResponse
,SmbComClose
,SmbComCreateDirectory
,SmbComDelete
,SmbComDeleteDirectory
,SmbComFindClose2
,SmbComLockingAndX
,SmbComLogoffAndX
,SmbComNegotiate
,SmbComNegotiateResponse
,SmbComNtCancel
,SmbComNTCreateAndX
,SmbComNTCreateAndXResponse
,SmbComNtTransaction
,SmbComNtTransactionResponse
,SmbComOpenAndX
,SmbComOpenAndXResponse
,SmbComQueryInformation
,SmbComQueryInformationResponse
,SmbComReadAndX
,SmbComReadAndXResponse
,SmbComRename
,SmbComSeek
,SmbComSeekResponse
,SmbComSessionSetupAndX
,SmbComSessionSetupAndXResponse
,SmbComSetInformation
,SmbComSetInformationResponse
,SmbComTransaction
,SmbComTransactionResponse
,SmbComTreeConnectAndX
,SmbComTreeConnectAndXResponse
,SmbComTreeDisconnect
,SmbComWrite
,SmbComWriteAndX
,SmbComWriteAndXResponse
,SmbComWriteResponse
,Trans2FindFirst2
,Trans2FindFirst2Response
,Trans2FindNext2
,Trans2GetDfsReferral
,Trans2GetDfsReferralResponse
,Trans2QueryFSInformation
,Trans2QueryFSInformationResponse
,Trans2QueryPathInformation
,Trans2QueryPathInformationResponse
,Trans2SetFileInformation
,Trans2SetFileInformationResponse
,TransCallNamedPipe
,TransCallNamedPipeResponse
,TransPeekNamedPipe
,TransPeekNamedPipeResponse
,TransTransactNamedPipe
,TransTransactNamedPipeResponse
,TransWaitNamedPipe
,TransWaitNamedPipeResponse
public interface CommonServerMessageBlock extends Message
- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
decode(byte[] buffer, int bufferIndex)
Decode message data from the given byte arrayint
encode(byte[] dst, int dstIndex)
int
getCommand()
SMBSigningDigest
getDigest()
long
getMid()
CommonServerMessageBlockResponse
getResponse()
void
reset()
void
setCommand(int command)
void
setDigest(SMBSigningDigest digest)
void
setExtendedSecurity(boolean extendedSecurity)
void
setMid(long mid)
void
setResponse(CommonServerMessageBlockResponse msg)
void
setSessionId(long sessionId)
void
setUid(int uid)
-
Methods inherited from interface jcifs.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
-
-
-
Method Detail
-
decode
int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException
Decode message data from the given byte array- Parameters:
buffer
-bufferIndex
-- Returns:
- message length
- Throws:
SMBProtocolDecodingException
-
encode
int encode(byte[] dst, int dstIndex)
- Parameters:
dst
-dstIndex
-- Returns:
- message length
-
setDigest
void setDigest(SMBSigningDigest digest)
- Parameters:
digest
-
-
getDigest
SMBSigningDigest getDigest()
- Returns:
- the signing digest
-
getResponse
CommonServerMessageBlockResponse getResponse()
- Returns:
- the associated response
-
setResponse
void setResponse(CommonServerMessageBlockResponse msg)
- Parameters:
msg
-
-
getMid
long getMid()
- Returns:
- the message id
-
setMid
void setMid(long mid)
- Parameters:
mid
-
-
getCommand
int getCommand()
- Returns:
- the command
-
setCommand
void setCommand(int command)
- Parameters:
command
-
-
setUid
void setUid(int uid)
- Parameters:
uid
-
-
setExtendedSecurity
void setExtendedSecurity(boolean extendedSecurity)
- Parameters:
extendedSecurity
-
-
setSessionId
void setSessionId(long sessionId)
- Parameters:
sessionId
-
-
reset
void reset()
-
-