Module jcifs

Class SmbNegotiation

java.lang.Object
org.codelibs.jcifs.smb.internal.SmbNegotiation

public final class SmbNegotiation extends Object
Container class for SMB protocol negotiation state. Holds the negotiation request, response, and raw buffer data exchanged between client and server during SMB protocol version negotiation.
Author:
mbechler
  • Constructor Details

    • SmbNegotiation

      public SmbNegotiation(SmbNegotiationRequest request, SmbNegotiationResponse response, byte[] negoReqBuffer, byte[] negoRespBuffer)
      Constructs an SMB negotiation result.
      Parameters:
      request - the negotiation request
      response - the negotiation response
      negoReqBuffer - the raw request buffer
      negoRespBuffer - the raw response buffer
  • Method Details

    • getRequest

      public SmbNegotiationRequest getRequest()
      Gets the negotiation request.
      Returns:
      the request
    • getResponse

      public SmbNegotiationResponse getResponse()
      Gets the negotiation response.
      Returns:
      the response
    • getRequestRaw

      public byte[] getRequestRaw()
      Gets the raw negotiation request buffer.
      Returns:
      the negoReqBuffer
    • getResponseRaw

      public byte[] getResponseRaw()
      Gets the raw negotiation response buffer.
      Returns:
      the negoRespBuffer