Package jcifs.dcerpc
Class DcerpcPipeHandle
- java.lang.Object
-
- jcifs.dcerpc.DcerpcHandle
-
- jcifs.dcerpc.DcerpcPipeHandle
-
- All Implemented Interfaces:
AutoCloseable,DcerpcConstants
public class DcerpcPipeHandle extends DcerpcHandle
-
-
Field Summary
-
Fields inherited from interface 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
-
-
Constructor Summary
Constructors Constructor Description DcerpcPipeHandle(String url, CIFSContext tc, boolean unshared)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected intdoReceiveFragment(byte[] buf)protected voiddoSendFragment(byte[] buf, int off, int length)protected intdoSendReceiveFragment(byte[] buf, int off, int length, byte[] inB)StringgetServer()StringgetServerWithDfs()byte[]getSessionKey()CIFSContextgetTransportContext()-
Methods inherited from class jcifs.dcerpc.DcerpcHandle
bind, getBinding, getHandle, getHandle, parseBinding, sendrecv, setDcerpcSecurityProvider, toString
-
-
-
-
Constructor Detail
-
DcerpcPipeHandle
public DcerpcPipeHandle(String url, CIFSContext tc, boolean unshared) throws DcerpcException, MalformedURLException
- Parameters:
url-tc-unshared-- Throws:
DcerpcExceptionMalformedURLException
-
-
Method Detail
-
getTransportContext
public CIFSContext getTransportContext()
- Specified by:
getTransportContextin classDcerpcHandle- Returns:
- the transport context used
-
getServer
public String getServer()
- Specified by:
getServerin classDcerpcHandle- Returns:
- the server connected to
-
getServerWithDfs
public String getServerWithDfs()
- Specified by:
getServerWithDfsin classDcerpcHandle- Returns:
- the server resolved by DFS
-
getSessionKey
public byte[] getSessionKey() throws CIFSException- Specified by:
getSessionKeyin classDcerpcHandle- Returns:
- session key of the underlying smb session
- Throws:
CIFSException
-
doSendReceiveFragment
protected int doSendReceiveFragment(byte[] buf, int off, int length, byte[] inB) throws IOException- Specified by:
doSendReceiveFragmentin classDcerpcHandle- Throws:
IOException- See Also:
DcerpcHandle.doSendReceiveFragment(byte[], int, int, byte[])
-
doSendFragment
protected void doSendFragment(byte[] buf, int off, int length) throws IOException- Specified by:
doSendFragmentin classDcerpcHandle- Throws:
IOException
-
doReceiveFragment
protected int doReceiveFragment(byte[] buf) throws IOException- Specified by:
doReceiveFragmentin classDcerpcHandle- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classDcerpcHandle- Throws:
IOException
-
-