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
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SMB2NegotiateContext
(SMB2NegotiateContextType negotiateContextType) For request to create instance -
Method Summary
Modifier and TypeMethodDescriptionstatic SMB2NegotiateContext
final SMB2NegotiateContext
protected void
readContext
(SMBBuffer buffer, int dataSize) Read the negotiate contextprivate int
readContextHeader
(SMBBuffer buffer) final int
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 Details
-
negotiateContextType
-
-
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. -
writeContextHeader
-
factory
- Throws:
Buffer.BufferException
-
read
- Throws:
Buffer.BufferException
-
readContext
Read the negotiate context- Parameters:
buffer
- the buffer to read context- Throws:
Buffer.BufferException
-
readContextHeader
- Throws:
Buffer.BufferException
-
getNegotiateContextType
-