Package com.hierynomus.mssmb2
Class SMB2PacketData
- All Implemented Interfaces:
PacketData<SMBBuffer>
- Direct Known Subclasses:
SMB2DecryptedPacketData
Represents the partially deserialized SMB2Packet contents.
The SMB2 Header is always present and has a fixed layout. The packet data itself varies based on the SMB2MessageCommandCode
in the header,
together with the NtStatus
.
-
Field Summary
Fields inherited from class com.hierynomus.smb.SMBPacketData
dataBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
Check whether this Packet is part of a Compounded messageboolean
boolean
Check whether this packet is an intermediate ASYNC responseboolean
Check whether this is an SMB2_OPLOCK_BREAK Notification packetprotected boolean
Check whether this packetData has ansuccess
statusnext()
toString()
Methods inherited from class com.hierynomus.smb.SMBPacketData
getDataBuffer, getHeader, readHeader
-
Constructor Details
-
SMB2PacketData
- Throws:
Buffer.BufferException
-
SMB2PacketData
SMB2PacketData(SMBBuffer buffer) throws Buffer.BufferException - Throws:
Buffer.BufferException
-
-
Method Details
-
getSequenceNumber
public long getSequenceNumber() -
isSuccess
protected boolean isSuccess()Check whether this packetData has ansuccess
status- Returns:
-
isIntermediateAsyncResponse
public boolean isIntermediateAsyncResponse()Check whether this packet is an intermediate ASYNC response -
isOplockBreakNotification
public boolean isOplockBreakNotification()Check whether this is an SMB2_OPLOCK_BREAK Notification packet -
isCompounded
public boolean isCompounded()Check whether this Packet is part of a Compounded message- Returns:
-
next
- Throws:
Buffer.BufferException
-
isDecrypted
public boolean isDecrypted() -
toString
-