Package com.hierynomus.mssmb2
Class SMB2PacketData
- java.lang.Object
-
- com.hierynomus.smb.SMBPacketData<SMB2PacketHeader>
-
- com.hierynomus.mssmb2.SMB2PacketData
-
- All Implemented Interfaces:
PacketData<SMBBuffer>
- Direct Known Subclasses:
SMB2DecryptedPacketData
public class SMB2PacketData extends SMBPacketData<SMB2PacketHeader>
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
SMB2MessageCommandCodein the header, together with theNtStatus.
-
-
Field Summary
-
Fields inherited from class com.hierynomus.smb.SMBPacketData
dataBuffer
-
-
Constructor Summary
Constructors Constructor Description SMB2PacketData(byte[] data)
-
Method Summary
Modifier and Type Method Description longgetSequenceNumber()booleanisCompounded()Check whether this Packet is part of a Compounded messagebooleanisDecrypted()booleanisIntermediateAsyncResponse()Check whether this packet is an intermediate ASYNC responsebooleanisOplockBreakNotification()Check whether this is an SMB2_OPLOCK_BREAK Notification packetprotected booleanisSuccess()Check whether this packetData has ansuccessstatusSMB2PacketDatanext()java.lang.StringtoString()-
Methods inherited from class com.hierynomus.smb.SMBPacketData
getDataBuffer, getHeader, readHeader
-
-
-
-
Constructor Detail
-
SMB2PacketData
public SMB2PacketData(byte[] data) throws Buffer.BufferException- Throws:
Buffer.BufferException
-
-
Method Detail
-
getSequenceNumber
public long getSequenceNumber()
-
isSuccess
protected boolean isSuccess()
Check whether this packetData has ansuccessstatus- 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
public SMB2PacketData next() throws Buffer.BufferException
- Throws:
Buffer.BufferException
-
isDecrypted
public boolean isDecrypted()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-