Package com.hierynomus.mssmb2.messages
Class SMB2SessionSetup
- java.lang.Object
-
- com.hierynomus.smb.SMBPacket<SMB2PacketData,SMB2PacketHeader>
-
- com.hierynomus.mssmb2.SMB2Packet
-
- com.hierynomus.mssmb2.messages.SMB2SessionSetup
-
public class SMB2SessionSetup extends SMB2Packet
[MS-SMB2].pdf 2.2.5 SMB2_SESSION_SETUP Request / 2.2.6 SMB2_SESSION_SETUP Response
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SMB2SessionSetup.SMB2SecurityMode
static class
SMB2SessionSetup.SMB2SessionFlags
-
Field Summary
-
Fields inherited from class com.hierynomus.mssmb2.SMB2Packet
SINGLE_CREDIT_PAYLOAD_SIZE, structureSize
-
-
Constructor Summary
Constructors Constructor Description SMB2SessionSetup()
SMB2SessionSetup(SMB2Dialect negotiatedDialect, java.util.Set<SMB2SessionSetup.SMB2SecurityMode> securityMode, java.util.Set<SMB2GlobalCapability> capabilities)
-
Method Summary
Modifier and Type Method Description byte[]
getSecurityBuffer()
java.util.Set<SMB2SessionSetup.SMB2SessionFlags>
getSessionFlags()
protected void
readMessage(SMBBuffer buffer)
Read the packet body, this should be implemented by the various packet types.void
setPreviousSessionId(long previousSessionId)
void
setSecurityBuffer(byte[] securityBuffer)
protected void
writeTo(SMBBuffer buffer)
Write the message fields into the buffer, as specified in the [MS-SMB2] specification.-
Methods inherited from class com.hierynomus.mssmb2.SMB2Packet
getBuffer, getCreditsAssigned, getError, getMaxPayloadSize, getPacket, getSequenceNumber, getStructureSize, isIntermediateAsyncResponse, isSuccess, read, setCreditsAssigned, toString, write
-
-
-
-
Constructor Detail
-
SMB2SessionSetup
public SMB2SessionSetup()
-
SMB2SessionSetup
public SMB2SessionSetup(SMB2Dialect negotiatedDialect, java.util.Set<SMB2SessionSetup.SMB2SecurityMode> securityMode, java.util.Set<SMB2GlobalCapability> capabilities)
-
-
Method Detail
-
writeTo
protected void writeTo(SMBBuffer buffer)
Description copied from class:SMB2Packet
Write the message fields into the buffer, as specified in the [MS-SMB2] specification.- Overrides:
writeTo
in classSMB2Packet
-
readMessage
protected void readMessage(SMBBuffer buffer) throws Buffer.BufferException
Description copied from class:SMB2Packet
Read the packet body, this should be implemented by the various packet types.- Overrides:
readMessage
in classSMB2Packet
- Throws:
Buffer.BufferException
-
getSessionFlags
public java.util.Set<SMB2SessionSetup.SMB2SessionFlags> getSessionFlags()
-
setPreviousSessionId
public void setPreviousSessionId(long previousSessionId)
-
setSecurityBuffer
public void setSecurityBuffer(byte[] securityBuffer)
-
getSecurityBuffer
public byte[] getSecurityBuffer()
-
-