Package jcifs.smb1.dcerpc
Class DcerpcHandle
- java.lang.Object
-
- jcifs.smb1.dcerpc.DcerpcHandle
-
- All Implemented Interfaces:
DcerpcConstants
- Direct Known Subclasses:
DcerpcPipeHandle
public abstract class DcerpcHandle extends Object implements DcerpcConstants
-
-
Field Summary
Fields Modifier and Type Field Description protected DcerpcBindingbindingprotected intmax_recvprotected intmax_xmitprotected DcerpcSecurityProvidersecurityProviderprotected intstate-
Fields inherited from interface jcifs.smb1.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(String url, NtlmPasswordAuthentication auth)PrincipalgetPrincipal()StringgetServer()protected static DcerpcBindingparseBinding(String str)voidsendrecv(DcerpcMessage msg)voidsetDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider)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(String str) throws DcerpcException
- Throws:
DcerpcException
-
getHandle
public static DcerpcHandle getHandle(String url, NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException
-
bind
public void bind() throws DcerpcException, IOException- Throws:
DcerpcExceptionIOException
-
sendrecv
public void sendrecv(DcerpcMessage msg) throws DcerpcException, IOException
- Throws:
DcerpcExceptionIOException
-
setDcerpcSecurityProvider
public void setDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider)
-
getServer
public String getServer()
-
getPrincipal
public Principal getPrincipal()
-
doSendFragment
protected abstract void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws IOException- Throws:
IOException
-
doReceiveFragment
protected abstract void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException- Throws:
IOException
-
close
public abstract void close() throws IOException- Throws:
IOException
-
-