java.lang.Object
org.codelibs.jcifs.smb1.dcerpc.DcerpcHandle
org.codelibs.jcifs.smb1.dcerpc.DcerpcPipeHandle
- All Implemented Interfaces:
DcerpcConstants
DCERPC handle implementation using SMB named pipes for transport
-
Field Summary
Fields inherited from class org.codelibs.jcifs.smb1.dcerpc.DcerpcHandle
binding, max_recv, max_xmit, securityProvider, stateFields inherited from interface org.codelibs.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
ConstructorsConstructorDescriptionDcerpcPipeHandle(String url, NtlmPasswordAuthentication auth) Creates a DCERPC pipe handle with the specified URL and authentication -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this DCERPC handle and releases resourcesprotected voiddoReceiveFragment(byte[] buf, boolean isDirect) Receives a DCERPC fragment from the remote endpointprotected voiddoSendFragment(byte[] buf, int off, int length, boolean isDirect) Sends a DCERPC fragment to the remote endpointMethods inherited from class org.codelibs.jcifs.smb1.dcerpc.DcerpcHandle
bind, getHandle, getPrincipal, getServer, parseBinding, sendrecv, setDcerpcSecurityProvider, toString
-
Constructor Details
-
DcerpcPipeHandle
public DcerpcPipeHandle(String url, NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException Creates a DCERPC pipe handle with the specified URL and authentication- Parameters:
url- the DCERPC URL specifying the endpointauth- the NTLM authentication credentials- Throws:
UnknownHostException- if the host cannot be resolvedMalformedURLException- if the URL is malformedDcerpcException- if DCERPC initialization fails
-
-
Method Details
-
doSendFragment
Description copied from class:DcerpcHandleSends a DCERPC fragment to the remote endpoint- Specified by:
doSendFragmentin classDcerpcHandle- Parameters:
buf- the buffer containing the fragmentoff- the offset into the bufferlength- the length of data to sendisDirect- whether to use direct transmission- Throws:
IOException- if an I/O error occurs
-
doReceiveFragment
Description copied from class:DcerpcHandleReceives a DCERPC fragment from the remote endpoint- Specified by:
doReceiveFragmentin classDcerpcHandle- Parameters:
buf- the buffer to receive the fragmentisDirect- whether to use direct reception- Throws:
IOException- if an I/O error occurs
-
close
Description copied from class:DcerpcHandleCloses this DCERPC handle and releases resources- Specified by:
closein classDcerpcHandle- Throws:
IOException- if an I/O error occurs during close
-