Module jcifs

Class ValidateNegotiateInfoResponse

java.lang.Object
org.codelibs.jcifs.smb.internal.smb2.ioctl.ValidateNegotiateInfoResponse
All Implemented Interfaces:
Decodable

public class ValidateNegotiateInfoResponse extends Object implements Decodable
SMB2 Validate Negotiate Info response data structure. This structure contains the server's validation of the originally negotiated SMB2 dialect.
Author:
mbechler
  • Constructor Details

    • ValidateNegotiateInfoResponse

      public ValidateNegotiateInfoResponse()
      Default constructor for ValidateNegotiateInfoResponse
  • Method Details

    • getCapabilities

      public int getCapabilities()
      Gets the server capabilities
      Returns:
      the capabilities flags from the server
    • getServerGuid

      public byte[] getServerGuid()
      Gets the server GUID
      Returns:
      the server's unique identifier
    • getSecurityMode

      public int getSecurityMode()
      Gets the security mode
      Returns:
      the security mode flags from the server
    • getDialect

      public int getDialect()
      Gets the negotiated SMB dialect
      Returns:
      the SMB dialect negotiated with the server
    • decode

      public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException
      Decode data from a byte buffer
      Specified by:
      decode in interface Decodable
      Parameters:
      buffer - the byte buffer containing the data to decode
      bufferIndex - the starting index in the buffer
      len - the maximum length of data to decode
      Returns:
      decoded length
      Throws:
      SMBProtocolDecodingException - if decoding fails
      See Also: