パッケージ jcifs
インタフェース SmbTransportPool
-
- 既知の実装クラスのリスト:
SmbTransportPoolImpl
public interface SmbTransportPoolThis is an internal API for managing pools of SMB connections- 作成者:
- mbechler
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 推奨されていないメソッド 修飾子とタイプ メソッド 説明 booleanclose()Closes the pool and all connections in itbyte[]getChallenge(CIFSContext tc, Address dc)推奨されていません。functionality is broken and will be removed at some point, use actual Active Directory authentication insteadbyte[]getChallenge(CIFSContext tc, Address dc, int port)推奨されていません。functionality is broken and will be removed at some point, use actual Active Directory authentication insteadSmbTransportgetSmbTransport(CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning)SmbTransportgetSmbTransport(CIFSContext tc, Address address, int port, boolean exclusive)Get transport connectionSmbTransportgetSmbTransport(CIFSContext tc, Address address, int port, boolean exclusive, boolean forceSigning)Get transport connectionSmbTransportgetSmbTransport(CIFSContext tc, Address address, int port, InetAddress localAddr, int localPort, String hostName, boolean exclusive)Get transport connection, with local bindingSmbTransportgetSmbTransport(CIFSContext tc, Address address, int port, InetAddress localAddr, int localPort, String hostName, boolean exclusive, boolean forceSigning)voidlogon(CIFSContext tc, Address dc)推奨されていません。functionality is broken and will be removed at some point, use actual Active Directory authentication insteadvoidlogon(CIFSContext tc, Address dc, int port)推奨されていません。functionality is broken and will be removed at some point, use actual Active Directory authentication insteadvoidremoveTransport(SmbTransport trans)
-
-
-
メソッドの詳細
-
getSmbTransport
SmbTransport getSmbTransport(CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning) throws UnknownHostException, IOException
- パラメータ:
tf-name-port-exclusive-forceSigning-- 戻り値:
- a connected transport
- 例外:
UnknownHostExceptionIOException
-
getSmbTransport
SmbTransport getSmbTransport(CIFSContext tc, Address address, int port, boolean exclusive)
Get transport connection- パラメータ:
tc- context to useaddress-port-exclusive- whether to acquire an unshared connection- 戻り値:
- a transport connection to the target
-
getSmbTransport
SmbTransport getSmbTransport(CIFSContext tc, Address address, int port, boolean exclusive, boolean forceSigning)
Get transport connection- パラメータ:
tc- context to useaddress-port-exclusive- whether to acquire an unshared connectionforceSigning- whether to enforce SMB signing on this connection- 戻り値:
- 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- パラメータ:
tc- context to useaddress-port-localAddr-localPort-hostName-exclusive- whether to acquire an unshared connection- 戻り値:
- 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)
- パラメータ:
tc- context to useaddress-port-localAddr-localPort-hostName-exclusive- whether to acquire an unshared connectionforceSigning- whether to enforce SMB signing on this connection- 戻り値:
- a transport connection to the target
-
removeTransport
void removeTransport(SmbTransport trans)
- パラメータ:
trans-
-
close
boolean close() throws CIFSExceptionCloses the pool and all connections in it- 戻り値:
- whether any transport was still in use
- 例外:
CIFSException
-
logon
@Deprecated void logon(CIFSContext tc, Address dc) throws CIFSException
推奨されていません。functionality is broken and will be removed at some point, use actual Active Directory authentication insteadAuthenticate 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.
- パラメータ:
dc-tc-- 例外:
CIFSException
-
logon
@Deprecated void logon(CIFSContext tc, Address dc, int port) throws CIFSException
推奨されていません。functionality is broken and will be removed at some point, use actual Active Directory authentication insteadAuthenticate 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.
- パラメータ:
dc-port-tc-- 例外:
CIFSException
-
getChallenge
@Deprecated byte[] getChallenge(CIFSContext tc, Address dc) throws CIFSException
推奨されていません。functionality is broken and will be removed at some point, use actual Active Directory authentication insteadGet NTLM challenge from a server- パラメータ:
dc-tc-- 戻り値:
- NTLM challenge
- 例外:
CIFSException
-
getChallenge
@Deprecated byte[] getChallenge(CIFSContext tc, Address dc, int port) throws CIFSException
推奨されていません。functionality is broken and will be removed at some point, use actual Active Directory authentication insteadGet NTLM challenge from a server- パラメータ:
dc-port-tc-- 戻り値:
- NTLM challenge
- 例外:
CIFSException
-
-