Package jcifs

Interface SmbTransportPool

  • All Known Implementing Classes:
    SmbTransportPoolImpl

    public interface SmbTransportPool
    This is an internal API for managing pools of SMB connections
    Author:
    mbechler
    • Method Detail

      • getSmbTransport

        SmbTransport getSmbTransport​(CIFSContext tc,
                                     Address address,
                                     int port,
                                     boolean exclusive)
        Get transport connection
        Parameters:
        tc - context to use
        address -
        port -
        exclusive - whether to acquire an unshared connection
        Returns:
        a transport connection to the target
      • getSmbTransport

        SmbTransport getSmbTransport​(CIFSContext tc,
                                     Address address,
                                     int port,
                                     boolean exclusive,
                                     boolean forceSigning)
        Get transport connection
        Parameters:
        tc - context to use
        address -
        port -
        exclusive - whether to acquire an unshared connection
        forceSigning - whether to enforce SMB signing on this connection
        Returns:
        a transport connection to the target
      • getSmbTransport

        SmbTransport getSmbTransport​(CIFSContext tc,
                                     Address address,
                                     int port,
                                     InetAddress localAddr,
                                     int localPort,
                                     String hostName,
                                     boolean exclusive)
        Get transport connection, with local binding
        Parameters:
        tc - context to use
        address -
        port -
        localAddr -
        localPort -
        hostName -
        exclusive - whether to acquire an unshared connection
        Returns:
        a transport connection to the target
      • getSmbTransport

        SmbTransport getSmbTransport​(CIFSContext tc,
                                     Address address,
                                     int port,
                                     InetAddress localAddr,
                                     int localPort,
                                     String hostName,
                                     boolean exclusive,
                                     boolean forceSigning)
        Parameters:
        tc - context to use
        address -
        port -
        localAddr -
        localPort -
        hostName -
        exclusive - whether to acquire an unshared connection
        forceSigning - whether to enforce SMB signing on this connection
        Returns:
        a transport connection to the target
      • removeTransport

        void removeTransport​(SmbTransport trans)
        Parameters:
        trans -
      • close

        boolean close()
               throws CIFSException
        Closes the pool and all connections in it
        Returns:
        whether any transport was still in use
        Throws:
        CIFSException
      • logon

        @Deprecated
        void logon​(CIFSContext tc,
                   Address dc)
            throws CIFSException
        Deprecated.
        functionality is broken and will be removed at some point, use actual Active Directory authentication instead
        Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter. If the credentials are not accepted, an SmbAuthException will be thrown. If an error occurs an SmbException will be thrown. If the credentials are valid, the method will return without throwing an exception. See the last FAQ question.

        See also the jcifs.smb.client.logonShare property.

        Parameters:
        dc -
        tc -
        Throws:
        CIFSException
      • logon

        @Deprecated
        void logon​(CIFSContext tc,
                   Address dc,
                   int port)
            throws CIFSException
        Deprecated.
        functionality is broken and will be removed at some point, use actual Active Directory authentication instead
        Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter. If the credentials are not accepted, an SmbAuthException will be thrown. If an error occurs an SmbException will be thrown. If the credentials are valid, the method will return without throwing an exception. See the last FAQ question.

        See also the jcifs.smb.client.logonShare property.

        Parameters:
        dc -
        port -
        tc -
        Throws:
        CIFSException
      • getChallenge

        @Deprecated
        byte[] getChallenge​(CIFSContext tc,
                            Address dc)
                     throws CIFSException
        Deprecated.
        functionality is broken and will be removed at some point, use actual Active Directory authentication instead
        Get NTLM challenge from a server
        Parameters:
        dc -
        tc -
        Returns:
        NTLM challenge
        Throws:
        CIFSException
      • getChallenge

        @Deprecated
        byte[] getChallenge​(CIFSContext tc,
                            Address dc,
                            int port)
                     throws CIFSException
        Deprecated.
        functionality is broken and will be removed at some point, use actual Active Directory authentication instead
        Get NTLM challenge from a server
        Parameters:
        dc -
        port -
        tc -
        Returns:
        NTLM challenge
        Throws:
        CIFSException