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 void
close()
protected int
doReceiveFragment(byte[] buf)
protected void
doSendFragment(byte[] buf, int off, int length)
protected int
doSendReceiveFragment(byte[] buf, int off, int length, byte[] inB)
String
getServer()
String
getServerWithDfs()
byte[]
getSessionKey()
CIFSContext
getTransportContext()
-
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:
DcerpcException
MalformedURLException
-
-
Method Detail
-
getTransportContext
public CIFSContext getTransportContext()
- Specified by:
getTransportContext
in classDcerpcHandle
- Returns:
- the transport context used
-
getServer
public String getServer()
- Specified by:
getServer
in classDcerpcHandle
- Returns:
- the server connected to
-
getServerWithDfs
public String getServerWithDfs()
- Specified by:
getServerWithDfs
in classDcerpcHandle
- Returns:
- the server resolved by DFS
-
getSessionKey
public byte[] getSessionKey() throws CIFSException
- Specified by:
getSessionKey
in 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:
doSendReceiveFragment
in 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:
doSendFragment
in classDcerpcHandle
- Throws:
IOException
-
doReceiveFragment
protected int doReceiveFragment(byte[] buf) throws IOException
- Specified by:
doReceiveFragment
in classDcerpcHandle
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classDcerpcHandle
- Throws:
IOException
-
-