public class SMB2SessionSetup extends SMB2Packet
| Modifier and Type | Class and Description |
|---|---|
static class |
SMB2SessionSetup.SMB2SecurityMode |
static class |
SMB2SessionSetup.SMB2SessionFlags |
SINGLE_CREDIT_PAYLOAD_SIZE, structureSize| Constructor and Description |
|---|
SMB2SessionSetup() |
SMB2SessionSetup(SMB2Dialect negotiatedDialect,
java.util.Set<SMB2SessionSetup.SMB2SecurityMode> securityMode,
java.util.Set<SMB2GlobalCapability> capabilities) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSecurityBuffer() |
java.util.Set<SMB2SessionSetup.SMB2SessionFlags> |
getSessionFlags() |
protected boolean |
isSuccess(long status)
[MS-SMB2].pdf 3.3.4.4
STATUS_MORE_PROCESSING_REQUIRED should be treated as a success code.
|
protected void |
readMessage(SMBBuffer buffer)
Read the message, this is only called in case the response is a success response according to
#isSuccess(NtStatus) |
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].pdf specification.
|
getBuffer, getCreditsAssigned, getError, getMaxPayloadSize, getMessageEndPos, getMessageStartPos, getSequenceNumber, getStructureSize, isIntermediateAsyncResponse, read, readError, setCreditsAssigned, toString, writepublic SMB2SessionSetup()
public SMB2SessionSetup(SMB2Dialect negotiatedDialect, java.util.Set<SMB2SessionSetup.SMB2SecurityMode> securityMode, java.util.Set<SMB2GlobalCapability> capabilities)
protected void writeTo(SMBBuffer buffer)
SMB2PacketwriteTo in class SMB2Packetprotected void readMessage(SMBBuffer buffer) throws Buffer.BufferException
SMB2Packet#isSuccess(NtStatus)readMessage in class SMB2PacketBuffer.BufferExceptionprotected boolean isSuccess(long status)
isSuccess in class SMB2Packetstatus - The status to verifypublic java.util.Set<SMB2SessionSetup.SMB2SessionFlags> getSessionFlags()
public void setPreviousSessionId(long previousSessionId)
public void setSecurityBuffer(byte[] securityBuffer)
public byte[] getSecurityBuffer()