Package jcifs.dcerpc
Class DcerpcHandle
- java.lang.Object
-
- jcifs.dcerpc.DcerpcHandle
-
- All Implemented Interfaces:
DcerpcConstants
- Direct Known Subclasses:
DcerpcPipeHandle
public abstract class DcerpcHandle extends java.lang.Object implements DcerpcConstants
-
-
Field Summary
Fields Modifier and Type Field Description protected DcerpcBindingbindingprotected intmax_recvprotected intmax_xmitprotected DcerpcSecurityProvidersecurityProviderprotected intstate-
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 DcerpcHandle()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbind()abstract voidclose()protected abstract voiddoReceiveFragment(byte[] buf, boolean isDirect)protected abstract voiddoSendFragment(byte[] buf, int off, int length, boolean isDirect)static DcerpcHandlegetHandle(java.lang.String url, NtlmPasswordAuthentication auth)java.security.PrincipalgetPrincipal()java.lang.StringgetServer()protected static DcerpcBindingparseBinding(java.lang.String str)voidsendrecv(DcerpcMessage msg)voidsetDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider)java.lang.StringtoString()
-
-
-
Field Detail
-
binding
protected DcerpcBinding binding
-
max_xmit
protected int max_xmit
-
max_recv
protected int max_recv
-
state
protected int state
-
securityProvider
protected DcerpcSecurityProvider securityProvider
-
-
Method Detail
-
parseBinding
protected static DcerpcBinding parseBinding(java.lang.String str) throws DcerpcException
- Throws:
DcerpcException
-
getHandle
public static DcerpcHandle getHandle(java.lang.String url, NtlmPasswordAuthentication auth) throws java.net.UnknownHostException, java.net.MalformedURLException, DcerpcException
- Throws:
java.net.UnknownHostExceptionjava.net.MalformedURLExceptionDcerpcException
-
bind
public void bind() throws DcerpcException, java.io.IOException- Throws:
DcerpcExceptionjava.io.IOException
-
sendrecv
public void sendrecv(DcerpcMessage msg) throws DcerpcException, java.io.IOException
- Throws:
DcerpcExceptionjava.io.IOException
-
setDcerpcSecurityProvider
public void setDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider)
-
getServer
public java.lang.String getServer()
-
getPrincipal
public java.security.Principal getPrincipal()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
doSendFragment
protected abstract void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws java.io.IOException- Throws:
java.io.IOException
-
doReceiveFragment
protected abstract void doReceiveFragment(byte[] buf, boolean isDirect) throws java.io.IOException- Throws:
java.io.IOException
-
close
public abstract void close() throws java.io.IOException- Throws:
java.io.IOException
-
-