Class SMB2SessionSetup
java.lang.Object
com.hierynomus.smb.SMBPacket<SMB2PacketData, SMB2PacketHeader>
com.hierynomus.mssmb2.SMB2Packet
com.hierynomus.mssmb2.messages.SMB2SessionSetup
[MS-SMB2].pdf 2.2.5 SMB2_SESSION_SETUP Request / 2.2.6 SMB2_SESSION_SETUP Response
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate SMB2Dialectprivate longprivate byte[]private byteprivate Set<SMB2SessionSetup.SMB2SessionFlags> Fields inherited from class SMB2Packet
SINGLE_CREDIT_PAYLOAD_SIZE, structureSize -
Constructor Summary
ConstructorsConstructorDescriptionSMB2SessionSetup(SMB2Dialect negotiatedDialect, Set<SMB2SessionSetup.SMB2SecurityMode> securityMode, Set<SMB2GlobalCapability> capabilities) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]private voidprotected voidreadMessage(SMBBuffer buffer) Read the packet body, this should be implemented by the various packet types.private byte[]readSecurityBuffer(SMBBuffer buffer, int securityBufferOffset, int securityBufferLength) voidsetPreviousSessionId(long previousSessionId) voidsetSecurityBuffer(byte[] securityBuffer) voidsetSessionFlags(Set<SMB2SessionSetup.SMB2SessionFlags> sessionFlags) protected voidWrite the message fields into the buffer, as specified in the [MS-SMB2] specification.Methods inherited from class SMB2Packet
getBuffer, getCreditsAssigned, getError, getMaxPayloadSize, getPacket, getSequenceNumber, getStructureSize, isIntermediateAsyncResponse, isSuccess, read, setCreditsAssigned, setError, toString, write
-
Field Details
-
negotiatedDialect
-
securityMode
private byte securityMode -
clientCapabilities
private long clientCapabilities -
securityBuffer
private byte[] securityBuffer -
previousSessionId
private long previousSessionId -
sessionFlags
-
-
Constructor Details
-
SMB2SessionSetup
public SMB2SessionSetup() -
SMB2SessionSetup
public SMB2SessionSetup(SMB2Dialect negotiatedDialect, Set<SMB2SessionSetup.SMB2SecurityMode> securityMode, Set<SMB2GlobalCapability> capabilities)
-
-
Method Details
-
writeTo
Description copied from class:SMB2PacketWrite the message fields into the buffer, as specified in the [MS-SMB2] specification.- Overrides:
writeToin classSMB2Packet- Parameters:
buffer-
-
readMessage
Description copied from class:SMB2PacketRead the packet body, this should be implemented by the various packet types.- Overrides:
readMessagein classSMB2Packet- Parameters:
buffer-- Throws:
Buffer.BufferException
-
readSecurityBuffer
private byte[] readSecurityBuffer(SMBBuffer buffer, int securityBufferOffset, int securityBufferLength) throws Buffer.BufferException - Throws:
Buffer.BufferException
-
putFlags
-
getSessionFlags
-
setSessionFlags
-
setPreviousSessionId
public void setPreviousSessionId(long previousSessionId) -
setSecurityBuffer
public void setSecurityBuffer(byte[] securityBuffer) -
getSecurityBuffer
public byte[] getSecurityBuffer()
-