Class SMB2NegotiateContext
- java.lang.Object
-
- com.hierynomus.mssmb2.messages.negotiate.SMB2NegotiateContext
-
- Direct Known Subclasses:
SMB2CompressionCapabilities
,SMB2EncryptionCapabilities
,SMB2NetNameNegotiateContextId
,SMB2PreauthIntegrityCapabilities
public abstract class SMB2NegotiateContext extends java.lang.Object
[MS-SMB2].pdf 2.2.3.1 / 2.2.4.1 Negotiate Context Request/Response
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SMB2NegotiateContext(SMB2NegotiateContextType negotiateContextType)
For request to create instance
-
Method Summary
Modifier and Type Method Description static SMB2NegotiateContext
factory(SMBBuffer buffer)
SMB2NegotiateContextType
getNegotiateContextType()
SMB2NegotiateContext
read(SMBBuffer buffer)
protected void
readContext(SMBBuffer buffer, int dataSize)
Read the negotiate contextint
write(SMBBuffer buffer)
Method to call for writing the Negotiate Context (one instance) to the bufferprotected int
writeContext(SMBBuffer buffer)
Write the negotiate context fields into the buffer, as specified in the [MS-SMB2].pdf specification.
-
-
-
Constructor Detail
-
SMB2NegotiateContext
protected SMB2NegotiateContext(SMB2NegotiateContextType negotiateContextType)
For request to create instance- Parameters:
negotiateContextType
- the type of this negotiateContext
-
-
Method Detail
-
write
public final int write(SMBBuffer buffer)
Method to call for writing the Negotiate Context (one instance) to the buffer- Parameters:
buffer
- the destination buffer to write to- Returns:
- The size in bytes of the SMB2NegotiateContext
-
writeContext
protected int writeContext(SMBBuffer buffer)
Write the negotiate context fields into the buffer, as specified in the [MS-SMB2].pdf specification.
-
factory
public static SMB2NegotiateContext factory(SMBBuffer buffer) throws Buffer.BufferException
- Throws:
Buffer.BufferException
-
read
public final SMB2NegotiateContext read(SMBBuffer buffer) throws Buffer.BufferException
- Throws:
Buffer.BufferException
-
readContext
protected void readContext(SMBBuffer buffer, int dataSize) throws Buffer.BufferException
Read the negotiate context- Parameters:
buffer
- the buffer to read context- Throws:
Buffer.BufferException
-
getNegotiateContextType
public SMB2NegotiateContextType getNegotiateContextType()
-
-