public interface SmbTransportPool
| Modifier and Type | Method and Description |
|---|---|
boolean |
close()
Closes the pool and all connections in it
|
byte[] |
getChallenge(CIFSContext tc,
Address dc)
Get NTLM challenge from a server
|
byte[] |
getChallenge(CIFSContext tc,
Address dc,
int port)
Get NTLM challenge from a server
|
SmbTransport |
getSmbTransport(CIFSContext tc,
Address address,
int port,
boolean exclusive)
Get transport connection
|
SmbTransport |
getSmbTransport(CIFSContext tc,
Address address,
int port,
boolean exclusive,
boolean forceSigning)
Get transport connection
|
SmbTransport |
getSmbTransport(CIFSContext tc,
Address address,
int port,
InetAddress localAddr,
int localPort,
String hostName,
boolean exclusive)
Get transport connection, with local binding
|
SmbTransport |
getSmbTransport(CIFSContext tc,
Address address,
int port,
InetAddress localAddr,
int localPort,
String hostName,
boolean exclusive,
boolean forceSigning) |
SmbTransport |
getSmbTransport(CIFSContext tf,
String name,
int port,
boolean exclusive,
boolean forceSigning) |
void |
logon(CIFSContext tc,
Address dc)
Authenticate arbitrary credentials represented by the
NtlmPasswordAuthentication object against the domain controller
specified by the UniAddress parameter.
|
void |
logon(CIFSContext tc,
Address dc,
int port)
Authenticate arbitrary credentials represented by the
NtlmPasswordAuthentication object against the domain controller
specified by the UniAddress parameter.
|
void |
removeTransport(SmbTransport trans) |
SmbTransport getSmbTransport(CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning) throws UnknownHostException, IOException
tf - name - port - exclusive - forceSigning - UnknownHostExceptionIOExceptionSmbTransport getSmbTransport(CIFSContext tc, Address address, int port, boolean exclusive)
tc - context to useaddress - port - exclusive - whether to acquire an unshared connectionSmbTransport getSmbTransport(CIFSContext tc, Address address, int port, boolean exclusive, boolean forceSigning)
tc - context to useaddress - port - exclusive - whether to acquire an unshared connectionforceSigning - whether to enforce SMB signing on this connectionSmbTransport getSmbTransport(CIFSContext tc, Address address, int port, InetAddress localAddr, int localPort, String hostName, boolean exclusive)
tc - context to useaddress - port - localAddr - localPort - hostName - exclusive - whether to acquire an unshared connectionSmbTransport getSmbTransport(CIFSContext tc, Address address, int port, InetAddress localAddr, int localPort, String hostName, boolean exclusive, boolean forceSigning)
tc - context to useaddress - port - localAddr - localPort - hostName - exclusive - whether to acquire an unshared connectionforceSigning - whether to enforce SMB signing on this connectionvoid removeTransport(SmbTransport trans)
trans - boolean close()
throws CIFSException
CIFSExceptionvoid logon(CIFSContext tc, Address dc) throws CIFSException
See also the jcifs.smb.client.logonShare property.
dc - tc - CIFSExceptionvoid logon(CIFSContext tc, Address dc, int port) throws CIFSException
See also the jcifs.smb.client.logonShare property.
dc - port - tc - CIFSExceptionbyte[] getChallenge(CIFSContext tc, Address dc) throws CIFSException
dc - tc - CIFSExceptionbyte[] getChallenge(CIFSContext tc, Address dc, int port) throws CIFSException
dc - port - tc - CIFSExceptionCopyright © 2018. All rights reserved.