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
|
String |
getServer() |
SmbSession |
getSession() |
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 useMalformedURLException
DcerpcException
public static DcerpcHandle getHandle(String url, CIFSContext tc, boolean unshared) throws MalformedURLException, DcerpcException
url
- tc
- unshared
- whether an exclusive connection should be usedMalformedURLException
DcerpcException
public void bind() throws DcerpcException, IOException
DcerpcException
IOException
public void sendrecv(DcerpcMessage msg) throws DcerpcException, IOException
msg
- DcerpcException
IOException
public void setDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider)
securityProvider
- public String getServer()
public CIFSContext getTransportContext()
public SmbSession getSession()
public void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2017. All rights reserved.