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
-
-
Field Summary
Fields Modifier and Type Field Description private SMB2NegotiateContextType
negotiateContextType
-
Constructor Summary
Constructors Modifier Constructor Description protected
SMB2NegotiateContext(SMB2NegotiateContextType negotiateContextType)
For request to create instance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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 contextprivate int
readContextHeader(SMBBuffer buffer)
int
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.private void
writeContextHeader(SMBBuffer buffer, int dataLength)
-
-
-
Field Detail
-
negotiateContextType
private SMB2NegotiateContextType negotiateContextType
-
-
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.
-
writeContextHeader
private void writeContextHeader(SMBBuffer buffer, int dataLength)
-
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
-
readContextHeader
private int readContextHeader(SMBBuffer buffer) throws Buffer.BufferException
- Throws:
Buffer.BufferException
-
getNegotiateContextType
public SMB2NegotiateContextType getNegotiateContextType()
-
-