Class SMB2TreeConnectResponse

All Implemented Interfaces:
Packet<SMBBuffer>

public class SMB2TreeConnectResponse extends SMB2Packet
[MS-SMB2].pdf 2.2.10 SMB2 TREE_CONNECT Response

TODO

  • Field Details

  • Constructor Details

    • SMB2TreeConnectResponse

      public SMB2TreeConnectResponse()
  • Method Details

    • readMessage

      protected void readMessage(SMBBuffer buffer) throws Buffer.BufferException
      Description copied from class: SMB2Packet
      Read the packet body, this should be implemented by the various packet types.
      Overrides:
      readMessage in class SMB2Packet
      Parameters:
      buffer -
      Throws:
      Buffer.BufferException
    • setShareType

      public void setShareType(byte shareType)
    • isDiskShare

      public boolean isDiskShare()
      Whether the ShareType returned is SMB2_SHARE_TYPE_DISK (0x01)
      Returns:
      true if the ShareType returned is SMB2_SHARE_TYPE_DISK (0x01)
    • isNamedPipe

      public boolean isNamedPipe()
      Whether the ShareType returned is SMB2_SHARE_TYPE_PIPE (0x02)
      Returns:
      true if the ShareType returned is SMB2_SHARE_TYPE_PIPE (0x02)
    • isPrinterShare

      public boolean isPrinterShare()
      Whether the ShareType returned is SMB2_SHARE_TYPE_PRINT (0x03)
      Returns:
      true if the ShareType returned is SMB2_SHARE_TYPE_PRINT (0x03)
    • getShareFlags

      public Set<SMB2ShareFlags> getShareFlags()
    • setShareFlags

      public void setShareFlags(Set<SMB2ShareFlags> shareFlags)
    • getCapabilities

      public Set<SMB2ShareCapabilities> getCapabilities()
    • setCapabilities

      public void setCapabilities(Set<SMB2ShareCapabilities> capabilities)
    • getMaximalAccess

      public Set<AccessMask> getMaximalAccess()