Module jcifs

Interface SmbSessionInternal

All Superinterfaces:
AutoCloseable, SmbSession

public interface SmbSessionInternal extends SmbSession
Internal SMB session interface providing extended session management capabilities. Defines methods for internal session operations and state management.
Author:
mbechler

This interface is intended for internal use.

  • Method Details

    • isInUse

      boolean isInUse()
      Determines whether this session is currently in use.
      Returns:
      whether the session is in use
    • getSessionKey

      byte[] getSessionKey() throws CIFSException
      Returns the current session key used for signing and encryption.
      Returns:
      the current session key
      Throws:
      CIFSException - if the session key cannot be retrieved
    • getTransport

      SmbTransport getTransport()
      Returns the SMB transport associated with this session.
      Returns:
      the transport for this session
    • treeConnectLogon

      void treeConnectLogon() throws SmbException
      Connect to the logon share
      Throws:
      SmbException - if the connection fails
    • getSmbTree

      SmbTree getSmbTree(String share, String service)
      Gets or creates an SMB tree connection for the specified share and service.
      Parameters:
      share - the share name to connect to
      service - the service type for the connection
      Returns:
      tree instance
    • reauthenticate

      void reauthenticate() throws CIFSException
      Initiate reauthentication
      Throws:
      CIFSException - if reauthentication fails