14using System.Runtime.InteropServices;
18 private Object locker =
new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 swigCPtr =
new HandleRef(
this, cPtr);
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
30 protected override void Dispose(
bool disposing) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
39 base.Dispose(disposing);
44 : this(
TD_DbPINVOKE.new_OdDbCrypt(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
46 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
49 mTr.AddObject(
new OdDbCrypt(swigCPtr.Handle,
true));
52 SwigDirectorConnect();
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
123IntPtr p_buffer=
Teigha.
Core.Helpers.MarshalbyteFixedArray(buffer);
129Marshal.FreeCoTaskMem(p_buffer);
134IntPtr p_buffer=
Teigha.
Core.Helpers.MarshalbyteFixedArray(buffer);
140Marshal.FreeCoTaskMem(p_buffer);
172 private void SwigDirectorConnect() {
173 if (SwigDerivedClassHasMethod(
"queryX", swigMethodTypes0))
175 if (SwigDerivedClassHasMethod(
"isA", swigMethodTypes1))
177 if (SwigDerivedClassHasMethod(
"initialize", swigMethodTypes2))
179 if (SwigDerivedClassHasMethod(
"encryptData", swigMethodTypes3))
181 if (SwigDerivedClassHasMethod(
"decryptData", swigMethodTypes4))
183 if (SwigDerivedClassHasMethod(
"digitalSignatureModeLaunched", swigMethodTypes5))
185 if (SwigDerivedClassHasMethod(
"appendDataToProcessSignature", swigMethodTypes6))
187 if (SwigDerivedClassHasMethod(
"signData", swigMethodTypes7))
189 if (SwigDerivedClassHasMethod(
"verifyDataSignature", swigMethodTypes8))
194 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
195 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance,
null, methodTypes,
null);
196 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(
OdDbCrypt));
197 return hasDerivedMethod;
200 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
209 private IntPtr SwigDirectorMethodisA() {
216 private bool SwigDirectorMethodinitialize(global::System.IntPtr securityParams) {
217 return initialize(
new OdSecurityParams(securityParams,
false));
220 private bool SwigDirectorMethodencryptData(IntPtr buffer) {
224 private bool SwigDirectorMethoddecryptData(IntPtr buffer) {
228 private bool SwigDirectorMethoddigitalSignatureModeLaunched() {
232 private void SwigDirectorMethodappendDataToProcessSignature(IntPtr dataBlock) {
239 private bool SwigDirectorMethodsignData(global::System.IntPtr securityParams, IntPtr signatureBlock) {
240 return signData(
new OdSecurityParams(securityParams,
false),
250, out verificationResult,
252 new OdSignatureDescription(signatureDesc,
true)
276 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
OdRxClass) };
277 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
278 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { typeof(OdSecurityParams) };
279 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { typeof(
byte[] ) };
280 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { typeof(
byte[] ) };
281 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { };
282 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { typeof(
OdBinaryData) };
283 private static global::System.Type[] swigMethodTypes7 =
new global::System.Type[] { typeof(OdSecurityParams), typeof(
OdBinaryData) };
static HandleRef getCPtr(OdBinaryData obj)
OdSignatureVerificationResult
static HandleRef getCPtr(OdRxClass obj)
static HandleRef getCPtr(OdRxObject obj)
virtual bool encryptData(byte[] buffer)
virtual bool initialize(OdSecurityParams securityParams)
static OdDbCrypt createObject()
virtual bool decryptData(byte[] buffer)
delegate bool SwigDelegateOdDbCrypt_5()
static HandleRef getCPtr(OdDbCrypt obj)
override OdRxObject queryX(OdRxClass protocolClass)
delegate IntPtr SwigDelegateOdDbCrypt_0(IntPtr protocolClass)
delegate bool SwigDelegateOdDbCrypt_4(IntPtr buffer)
virtual void appendDataToProcessSignature(OdBinaryData dataBlock)
virtual bool signData(OdSecurityParams securityParams, OdBinaryData signatureBlock)
virtual void verifyDataSignature(OdBinaryData signatureBlock, out OdCryptoServices.OdSignatureVerificationResult verificationResult, OdSignatureDescription signatureDesc)
delegate void SwigDelegateOdDbCrypt_6(IntPtr dataBlock)
override void Dispose(bool disposing)
static OdDbCrypt cast(OdRxObject pObj)
delegate bool SwigDelegateOdDbCrypt_7(global::System.IntPtr securityParams, IntPtr signatureBlock)
delegate void SwigDelegateOdDbCrypt_8(IntPtr signatureBlock, OdCryptoServices.OdSignatureVerificationResult verificationResult, IntPtr signatureDesc)
static new OdRxClass desc()
delegate bool SwigDelegateOdDbCrypt_3(IntPtr buffer)
OdDbCrypt(IntPtr cPtr, bool cMemoryOwn)
static string getRealClassName(IntPtr ptr)
delegate IntPtr SwigDelegateOdDbCrypt_1()
delegate bool SwigDelegateOdDbCrypt_2(global::System.IntPtr securityParams)
virtual bool digitalSignatureModeLaunched()
static HandleRef getCPtr(OdSecurityParams obj)
static HandleRef getCPtr(OdSignatureDescription obj)
static global::System.Exception Retrieve()
static IntPtr OdDbCrypt_createObject()
static void delete_OdDbCrypt(HandleRef jarg1)
static bool OdDbCrypt_initialize(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDbCrypt_encryptData(HandleRef jarg1, IntPtr jarg2)
static IntPtr OdDbCrypt_desc()
static bool OdDbCrypt_decryptData(HandleRef jarg1, IntPtr jarg2)
static void OdDbCrypt_verifyDataSignature(HandleRef jarg1, IntPtr jarg2, out OdCryptoServices.OdSignatureVerificationResult jarg3, IntPtr jarg4)
static bool OdDbCrypt_signData(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static void OdDbCrypt_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdDbCrypt.SwigDelegateOdDbCrypt_0 delegate0, OdDbCrypt.SwigDelegateOdDbCrypt_1 delegate1, OdDbCrypt.SwigDelegateOdDbCrypt_2 delegate2, OdDbCrypt.SwigDelegateOdDbCrypt_3 delegate3, OdDbCrypt.SwigDelegateOdDbCrypt_4 delegate4, OdDbCrypt.SwigDelegateOdDbCrypt_5 delegate5, OdDbCrypt.SwigDelegateOdDbCrypt_6 delegate6, OdDbCrypt.SwigDelegateOdDbCrypt_7 delegate7, OdDbCrypt.SwigDelegateOdDbCrypt_8 delegate8)
static IntPtr OdDbCrypt_queryXSwigExplicitOdDbCrypt(HandleRef jarg1, HandleRef jarg2)
static string OdDbCrypt_getRealClassName(IntPtr jarg1)
static IntPtr OdDbCrypt_isA(HandleRef jarg1)
static bool OdDbCrypt_digitalSignatureModeLaunchedSwigExplicitOdDbCrypt(HandleRef jarg1)
static bool OdDbCrypt_digitalSignatureModeLaunched(HandleRef jarg1)
static IntPtr OdDbCrypt_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbCrypt_cast(HandleRef jarg1)
static void OdDbCrypt_appendDataToProcessSignature(HandleRef jarg1, IntPtr jarg2)
static IntPtr OdDbCrypt_isASwigExplicitOdDbCrypt(HandleRef jarg1)