パッケージ jcifs.smb
クラス SmbTransportPoolImpl
- java.lang.Object
-
- jcifs.smb.SmbTransportPoolImpl
-
- すべての実装されたインタフェース:
SmbTransportPool
public class SmbTransportPoolImpl extends Object implements SmbTransportPool
- 作成者:
- mbechler
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 SmbTransportPoolImpl()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 booleanclose()Closes the pool and all connections in itbooleancontains(SmbTransport trans)byte[]getChallenge(CIFSContext tf, Address dc)Get NTLM challenge from a serverbyte[]getChallenge(CIFSContext tf, Address dc, int port)Get NTLM challenge from a serverjcifs.smb.SmbTransportImplgetSmbTransport(CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning)jcifs.smb.SmbTransportImplgetSmbTransport(CIFSContext tc, Address address, int port, boolean nonPooled)Get transport connectionjcifs.smb.SmbTransportImplgetSmbTransport(CIFSContext tc, Address address, int port, boolean nonPooled, boolean forceSigning)Get transport connectionjcifs.smb.SmbTransportImplgetSmbTransport(CIFSContext tc, Address address, int port, InetAddress localAddr, int localPort, String hostName, boolean nonPooled)Get transport connection, with local bindingjcifs.smb.SmbTransportImplgetSmbTransport(CIFSContext tc, Address address, int port, InetAddress localAddr, int localPort, String hostName, boolean nonPooled, boolean forceSigning)voidlogon(CIFSContext tf, Address dc)Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter.voidlogon(CIFSContext tf, Address dc, int port)Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter.voidremoveTransport(SmbTransport trans)
-
-
-
メソッドの詳細
-
getSmbTransport
public jcifs.smb.SmbTransportImpl getSmbTransport(CIFSContext tc, Address address, int port, boolean nonPooled)
インタフェースからコピーされた説明:SmbTransportPoolGet transport connection- 定義:
getSmbTransportインタフェース内SmbTransportPool- パラメータ:
tc- context to usenonPooled- whether to acquire an unshared connection- 戻り値:
- a transport connection to the target
-
getSmbTransport
public jcifs.smb.SmbTransportImpl getSmbTransport(CIFSContext tc, Address address, int port, boolean nonPooled, boolean forceSigning)
インタフェースからコピーされた説明:SmbTransportPoolGet transport connection- 定義:
getSmbTransportインタフェース内SmbTransportPool- パラメータ:
tc- context to usenonPooled- whether to acquire an unshared connectionforceSigning- whether to enforce SMB signing on this connection- 戻り値:
- 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)
インタフェースからコピーされた説明:SmbTransportPoolGet transport connection, with local binding- 定義:
getSmbTransportインタフェース内SmbTransportPool- パラメータ:
tc- context to usenonPooled- whether to acquire an unshared connection- 戻り値:
- 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)
- 定義:
getSmbTransportインタフェース内SmbTransportPool- パラメータ:
tc- context to usenonPooled- whether to acquire an unshared connectionforceSigning- whether to enforce SMB signing on this connection- 戻り値:
- a transport connection to the target
-
getSmbTransport
public jcifs.smb.SmbTransportImpl getSmbTransport(CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning) throws IOException
- 定義:
getSmbTransportインタフェース内SmbTransportPool- 戻り値:
- a connected transport
- 例外:
UnknownHostExceptionIOException
-
contains
public boolean contains(SmbTransport trans)
- パラメータ:
trans-- 戻り値:
- whether (non-exclusive) connection is in the pool
-
removeTransport
public void removeTransport(SmbTransport trans)
- 定義:
removeTransportインタフェース内SmbTransportPool
-
close
public boolean close() throws CIFSExceptionCloses the pool and all connections in it- 定義:
closeインタフェース内SmbTransportPool- 戻り値:
- whether any transport was still in use
- 例外:
CIFSException- 関連項目:
SmbTransportPool.close()
-
getChallenge
public byte[] getChallenge(CIFSContext tf, Address dc) throws SmbException
インタフェースからコピーされた説明:SmbTransportPoolGet NTLM challenge from a server- 定義:
getChallengeインタフェース内SmbTransportPool- 戻り値:
- NTLM challenge
- 例外:
SmbException
-
getChallenge
public byte[] getChallenge(CIFSContext tf, Address dc, int port) throws SmbException
インタフェースからコピーされた説明:SmbTransportPoolGet NTLM challenge from a server- 定義:
getChallengeインタフェース内SmbTransportPool- 戻り値:
- NTLM challenge
- 例外:
SmbException
-
logon
public void logon(CIFSContext tf, Address dc) throws SmbException
インタフェースからコピーされた説明:SmbTransportPoolAuthenticate 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.
- 定義:
logonインタフェース内SmbTransportPool- 例外:
SmbException
-
logon
public void logon(CIFSContext tf, Address dc, int port) throws SmbException
インタフェースからコピーされた説明:SmbTransportPoolAuthenticate 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.
- 定義:
logonインタフェース内SmbTransportPool- 例外:
SmbException
-
-