Module jcifs

Class ValidateNegotiateInfoRequest

java.lang.Object
org.codelibs.jcifs.smb.internal.smb2.ioctl.ValidateNegotiateInfoRequest
All Implemented Interfaces:
Encodable

public class ValidateNegotiateInfoRequest extends Object implements Encodable
SMB2 Validate Negotiate Info request data structure. This structure is used to validate that the negotiated SMB2 dialect matches what was originally negotiated.
Author:
mbechler
  • Constructor Summary

    Constructors
    Constructor
    Description
    ValidateNegotiateInfoRequest(int capabilities, byte[] clientGuid, int securityMode, int[] dialects)
    Constructs a ValidateNegotiateInfo request
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    encode(byte[] dst, int dstIndex)
    Encodes this object into the specified byte array.
    int
    Returns the size in bytes that this object will occupy when encoded.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ValidateNegotiateInfoRequest

      public ValidateNegotiateInfoRequest(int capabilities, byte[] clientGuid, int securityMode, int[] dialects)
      Constructs a ValidateNegotiateInfo request
      Parameters:
      capabilities - the client capabilities flags
      clientGuid - the client GUID
      securityMode - the security mode flags
      dialects - the SMB dialects supported by the client
  • Method Details

    • encode

      public int encode(byte[] dst, int dstIndex)
      Encodes this object into the specified byte array.
      Specified by:
      encode in interface Encodable
      Parameters:
      dst - the destination byte array to encode into
      dstIndex - the starting index in the destination array
      Returns:
      encoded length
      See Also:
    • size

      public int size()
      Returns the size in bytes that this object will occupy when encoded.
      Specified by:
      size in interface Encodable
      Returns:
      the encoded size
      See Also: