public abstract class DcerpcHandle extends java.lang.Object implements DcerpcConstants
| Modifier and Type | Field and Description |
|---|---|
protected DcerpcBinding |
binding |
protected int |
max_recv |
protected int |
max_xmit |
protected DcerpcSecurityProvider |
securityProvider |
protected int |
state |
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() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind() |
abstract void |
close() |
protected abstract void |
doReceiveFragment(byte[] buf,
boolean isDirect) |
protected abstract void |
doSendFragment(byte[] buf,
int off,
int length,
boolean isDirect) |
static DcerpcHandle |
getHandle(java.lang.String url,
NtlmPasswordAuthentication auth) |
java.security.Principal |
getPrincipal() |
java.lang.String |
getServer() |
protected static DcerpcBinding |
parseBinding(java.lang.String str) |
void |
sendrecv(DcerpcMessage msg) |
void |
setDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider) |
java.lang.String |
toString() |
protected DcerpcBinding binding
protected int max_xmit
protected int max_recv
protected int state
protected DcerpcSecurityProvider securityProvider
protected static DcerpcBinding parseBinding(java.lang.String str) throws DcerpcException
DcerpcExceptionpublic static DcerpcHandle getHandle(java.lang.String url, NtlmPasswordAuthentication auth) throws java.net.UnknownHostException, java.net.MalformedURLException, DcerpcException
java.net.UnknownHostExceptionjava.net.MalformedURLExceptionDcerpcExceptionpublic void bind()
throws DcerpcException,
java.io.IOException
DcerpcExceptionjava.io.IOExceptionpublic void sendrecv(DcerpcMessage msg) throws DcerpcException, java.io.IOException
DcerpcExceptionjava.io.IOExceptionpublic void setDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider)
public java.lang.String getServer()
public java.security.Principal getPrincipal()
public java.lang.String toString()
toString in class java.lang.Objectprotected abstract void doSendFragment(byte[] buf,
int off,
int length,
boolean isDirect)
throws java.io.IOException
java.io.IOExceptionprotected abstract void doReceiveFragment(byte[] buf,
boolean isDirect)
throws java.io.IOException
java.io.IOExceptionpublic abstract void close()
throws java.io.IOException
java.io.IOException