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
SMB2MessageCommandCode
in 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSequenceNumber()
boolean
isCompounded()
Check whether this Packet is part of a Compounded messageboolean
isDecrypted()
boolean
isIntermediateAsyncResponse()
Check whether this packet is an intermediate ASYNC responseboolean
isOplockBreakNotification()
Check whether this is an SMB2_OPLOCK_BREAK Notification packetprotected boolean
isSuccess()
Check whether this packetData has ansuccess
statusSMB2PacketData
next()
java.lang.String
toString()
-
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 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
public SMB2PacketData next() throws Buffer.BufferException
- Throws:
Buffer.BufferException
-
isDecrypted
public boolean isDecrypted()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-