public abstract class DcerpcHandle extends Object implements DcerpcConstants, AutoCloseable
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 and Description |
|---|
DcerpcHandle(CIFSContext tc) |
DcerpcHandle(CIFSContext tc,
DcerpcBinding binding) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
Bind the handle
|
void |
close() |
static DcerpcHandle |
getHandle(String url,
CIFSContext tc)
Get a handle to a service
|
static DcerpcHandle |
getHandle(String url,
CIFSContext tc,
boolean unshared)
Get a handle to a service
|
abstract String |
getServer() |
abstract String |
getServerWithDfs() |
abstract byte[] |
getSessionKey() |
abstract CIFSContext |
getTransportContext() |
void |
sendrecv(DcerpcMessage msg) |
void |
setDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider) |
String |
toString() |
public DcerpcHandle(CIFSContext tc)
tc - public DcerpcHandle(CIFSContext tc, DcerpcBinding binding)
tc - binding - public static DcerpcHandle getHandle(String url, CIFSContext tc) throws MalformedURLException, DcerpcException
url - tc - context to useMalformedURLExceptionDcerpcExceptionpublic static DcerpcHandle getHandle(String url, CIFSContext tc, boolean unshared) throws MalformedURLException, DcerpcException
url - tc - unshared - whether an exclusive connection should be usedMalformedURLExceptionDcerpcExceptionpublic void bind()
throws DcerpcException,
IOException
DcerpcExceptionIOExceptionpublic void sendrecv(DcerpcMessage msg) throws DcerpcException, IOException
msg - DcerpcExceptionIOExceptionpublic void setDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider)
securityProvider - public abstract String getServer()
public abstract String getServerWithDfs()
public abstract CIFSContext getTransportContext()
public abstract byte[] getSessionKey()
throws CIFSException
CIFSExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2018. All rights reserved.