public interface SmbTransportPool
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the pool and all connections in it
|
byte[] |
getChallenge(CIFSContext tc,
UniAddress dc)
Get NTLM challenge from a server
|
byte[] |
getChallenge(CIFSContext tc,
UniAddress dc,
int port)
Get NTLM challenge from a server
|
SmbTransport |
getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
boolean exclusive)
Get transport connection
|
SmbTransport |
getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
boolean exclusive,
boolean forceSigning)
Get transport connection
|
SmbTransport |
getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
InetAddress localAddr,
int localPort,
String hostName,
boolean exclusive)
Get transport connection, with local binding
|
SmbTransport |
getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
InetAddress localAddr,
int localPort,
String hostName,
boolean exclusive,
boolean forceSigning) |
void |
logon(CIFSContext tc,
UniAddress dc)
Authenticate arbitrary credentials represented by the
NtlmPasswordAuthentication object against the domain controller
specified by the UniAddress parameter.
|
void |
logon(CIFSContext tc,
UniAddress 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 tc, UniAddress address, int port, boolean exclusive)
tc
- context to useaddress
- port
- exclusive
- whether to acquire an unshared connectionSmbTransport getSmbTransport(CIFSContext tc, UniAddress 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, UniAddress 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, UniAddress 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
- void close() throws CIFSException
CIFSException
void logon(CIFSContext tc, UniAddress dc) throws SmbException
See also the jcifs.smb.client.logonShare property.
dc
- tc
- SmbException
void logon(CIFSContext tc, UniAddress dc, int port) throws SmbException
See also the jcifs.smb.client.logonShare property.
dc
- port
- tc
- SmbException
byte[] getChallenge(CIFSContext tc, UniAddress dc) throws SmbException
dc
- tc
- SmbException
byte[] getChallenge(CIFSContext tc, UniAddress dc, int port) throws SmbException
dc
- port
- tc
- SmbException
Copyright © 2016. All rights reserved.