パッケージ jcifs.dcerpc
クラス DcerpcHandle
- java.lang.Object
-
- jcifs.dcerpc.DcerpcHandle
-
- すべての実装されたインタフェース:
AutoCloseable,DcerpcConstants
- 直系の既知のサブクラス:
DcerpcPipeHandle
public abstract class DcerpcHandle extends Object implements DcerpcConstants, AutoCloseable
-
-
フィールドの概要
-
インタフェースから継承されたフィールド jcifs.dcerpc.DcerpcConstants
DCERPC_CONC_MPX, DCERPC_DID_NOT_EXECUTE, DCERPC_FIRST_FRAG, DCERPC_LAST_FRAG, DCERPC_MAYBE, DCERPC_OBJECT_UUID, DCERPC_PENDING_CANCEL, DCERPC_RESERVED_1, DCERPC_UUID_SYNTAX_NDR
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 DcerpcHandle(CIFSContext tc)DcerpcHandle(CIFSContext tc, DcerpcBinding binding)
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド abstractメソッド concreteメソッド 修飾子とタイプ メソッド 説明 voidbind()Bind the handlevoidclose()protected abstract intdoReceiveFragment(byte[] buf)protected abstract voiddoSendFragment(byte[] buf, int off, int length)protected abstract intdoSendReceiveFragment(byte[] out, int off, int length, byte[] inB)DcerpcBindinggetBinding()static DcerpcHandlegetHandle(String url, CIFSContext tc)Get a handle to a servicestatic DcerpcHandlegetHandle(String url, CIFSContext tc, boolean unshared)Get a handle to a serviceabstract StringgetServer()abstract StringgetServerWithDfs()abstract byte[]getSessionKey()abstract CIFSContextgetTransportContext()protected static DcerpcBindingparseBinding(String str)voidsendrecv(DcerpcMessage msg)voidsetDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider)StringtoString()
-
-
-
コンストラクタの詳細
-
DcerpcHandle
public DcerpcHandle(CIFSContext tc)
- パラメータ:
tc-
-
DcerpcHandle
public DcerpcHandle(CIFSContext tc, DcerpcBinding binding)
- パラメータ:
tc-binding-
-
-
メソッドの詳細
-
parseBinding
protected static DcerpcBinding parseBinding(String str) throws DcerpcException
- 例外:
DcerpcException
-
getBinding
public DcerpcBinding getBinding()
- 戻り値:
- the binding
-
getHandle
public static DcerpcHandle getHandle(String url, CIFSContext tc) throws MalformedURLException, DcerpcException
Get a handle to a service- パラメータ:
url-tc- context to use- 戻り値:
- a DCERPC handle for the given url
- 例外:
MalformedURLExceptionDcerpcException
-
getHandle
public static DcerpcHandle getHandle(String url, CIFSContext tc, boolean unshared) throws MalformedURLException, DcerpcException
Get a handle to a service- パラメータ:
url-tc-unshared- whether an exclusive connection should be used- 戻り値:
- a DCERPC handle for the given url
- 例外:
MalformedURLExceptionDcerpcException
-
bind
public void bind() throws DcerpcException, IOExceptionBind the handle
-
sendrecv
public void sendrecv(DcerpcMessage msg) throws DcerpcException, IOException
- パラメータ:
msg-- 例外:
DcerpcExceptionIOException
-
setDcerpcSecurityProvider
public void setDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider)
- パラメータ:
securityProvider-
-
getServer
public abstract String getServer()
- 戻り値:
- the server connected to
-
getServerWithDfs
public abstract String getServerWithDfs()
- 戻り値:
- the server resolved by DFS
-
getTransportContext
public abstract CIFSContext getTransportContext()
- 戻り値:
- the transport context used
-
getSessionKey
public abstract byte[] getSessionKey() throws CIFSException- 戻り値:
- session key of the underlying smb session
- 例外:
CIFSException
-
doSendFragment
protected abstract void doSendFragment(byte[] buf, int off, int length) throws IOException- 例外:
IOException
-
doReceiveFragment
protected abstract int doReceiveFragment(byte[] buf) throws IOException- 例外:
IOException
-
doSendReceiveFragment
protected abstract int doSendReceiveFragment(byte[] out, int off, int length, byte[] inB) throws IOException- 例外:
IOException
-
close
public void close() throws IOException- 定義:
closeインタフェース内AutoCloseable- 例外:
IOException
-
-