Class SMB2NegotiateContext
java.lang.Object
com.hierynomus.mssmb2.messages.negotiate.SMB2NegotiateContext
- Direct Known Subclasses:
SMB2CompressionCapabilities, SMB2EncryptionCapabilities, SMB2NetNameNegotiateContextId, SMB2PreauthIntegrityCapabilities
[MS-SMB2].pdf 2.2.3.1 / 2.2.4.1 Negotiate Context Request/Response
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSMB2NegotiateContext(SMB2NegotiateContextType negotiateContextType) For request to create instance -
Method Summary
Modifier and TypeMethodDescriptionstatic SMB2NegotiateContextfinal SMB2NegotiateContextprotected voidreadContext(SMBBuffer buffer, int dataSize) Read the negotiate contextfinal intMethod to call for writing the Negotiate Context (one instance) to the bufferprotected intwriteContext(SMBBuffer buffer) Write the negotiate context fields into the buffer, as specified in the [MS-SMB2].pdf specification.
-
Constructor Details
-
SMB2NegotiateContext
For request to create instance- Parameters:
negotiateContextType- the type of this negotiateContext
-
-
Method Details
-
write
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
Write the negotiate context fields into the buffer, as specified in the [MS-SMB2].pdf specification. -
factory
- Throws:
Buffer.BufferException
-
read
- Throws:
Buffer.BufferException
-
readContext
Read the negotiate context- Parameters:
buffer- the buffer to read context- Throws:
Buffer.BufferException
-
getNegotiateContextType
-