Package jcifs.smb

Class SmbTransportPoolImpl

    • Constructor Detail

      • SmbTransportPoolImpl

        public SmbTransportPoolImpl()
    • Method Detail

      • getSmbTransport

        public jcifs.smb.SmbTransportImpl getSmbTransport​(CIFSContext tc,
                                                          Address address,
                                                          int port,
                                                          boolean nonPooled)
        Description copied from interface: SmbTransportPool
        Get transport connection
        Specified by:
        getSmbTransport in interface SmbTransportPool
        Parameters:
        tc - context to use
        nonPooled - whether to acquire an unshared connection
        Returns:
        a transport connection to the target
      • getSmbTransport

        public jcifs.smb.SmbTransportImpl getSmbTransport​(CIFSContext tc,
                                                          Address address,
                                                          int port,
                                                          boolean nonPooled,
                                                          boolean forceSigning)
        Description copied from interface: SmbTransportPool
        Get transport connection
        Specified by:
        getSmbTransport in interface SmbTransportPool
        Parameters:
        tc - context to use
        nonPooled - whether to acquire an unshared connection
        forceSigning - whether to enforce SMB signing on this connection
        Returns:
        a transport connection to the target
      • getSmbTransport

        public jcifs.smb.SmbTransportImpl getSmbTransport​(CIFSContext tc,
                                                          Address address,
                                                          int port,
                                                          InetAddress localAddr,
                                                          int localPort,
                                                          String hostName,
                                                          boolean nonPooled)
        Description copied from interface: SmbTransportPool
        Get transport connection, with local binding
        Specified by:
        getSmbTransport in interface SmbTransportPool
        Parameters:
        tc - context to use
        nonPooled - whether to acquire an unshared connection
        Returns:
        a transport connection to the target
      • getSmbTransport

        public jcifs.smb.SmbTransportImpl getSmbTransport​(CIFSContext tc,
                                                          Address address,
                                                          int port,
                                                          InetAddress localAddr,
                                                          int localPort,
                                                          String hostName,
                                                          boolean nonPooled,
                                                          boolean forceSigning)
        Specified by:
        getSmbTransport in interface SmbTransportPool
        Parameters:
        tc - context to use
        nonPooled - whether to acquire an unshared connection
        forceSigning - whether to enforce SMB signing on this connection
        Returns:
        a transport connection to the target
      • contains

        public boolean contains​(SmbTransport trans)
        Parameters:
        trans -
        Returns:
        whether (non-exclusive) connection is in the pool
      • logon

        public void logon​(CIFSContext tf,
                          Address dc)
                   throws SmbException
        Description copied from interface: SmbTransportPool
        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.

        Specified by:
        logon in interface SmbTransportPool
        Throws:
        SmbException
      • logon

        @Deprecated
        public void logon​(CIFSContext tf,
                          Address dc,
                          int port)
                   throws SmbException
        Deprecated.
        Description copied from interface: SmbTransportPool
        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.

        Specified by:
        logon in interface SmbTransportPool
        Throws:
        SmbException