Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDwfxSignatureHandler.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdDwfxSignatureHandler : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDwfxSignatureHandler(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDwfxSignatureHandler obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public virtual void setCertParameters(OdCertParameters certParams) {
54 }
55
56 public virtual bool signPackage(String filePath) {
57 bool ret = GlobalsPINVOKE.OdDwfxSignatureHandler_signPackage(swigCPtr, filePath);
59 return ret;
60 }
61
62 public virtual bool removeExistingSignature(String filePath) {
65 return ret;
66 }
67
68 public virtual bool validatePackageSignature(String filePath, out OdDwfxSignatureHandler.SignatureValidationResult validationResult, OdCertParameters certParams) {
69 bool ret = GlobalsPINVOKE.OdDwfxSignatureHandler_validatePackageSignature(swigCPtr, filePath, out validationResult, OdCertParameters.getCPtr(certParams));
71 return ret;
72 }
73
74 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
75 string ret = GlobalsPINVOKE.OdDwfxSignatureHandler_getRealClassName(ptr /*SIMPLETYPE*/);
77 return ret;
78 }
79
81 kSuccess = 0,
85 }
86
87}
88
89}
static global::System.Exception Retrieve()
static bool OdDwfxSignatureHandler_signPackage(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdDwfxSignatureHandler_removeExistingSignature(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdDwfxSignatureHandler_validatePackageSignature(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, out OdDwfxSignatureHandler.SignatureValidationResult jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void delete_OdDwfxSignatureHandler(HandleRef jarg1)
static string OdDwfxSignatureHandler_getRealClassName(IntPtr jarg1)
static void OdDwfxSignatureHandler_setCertParameters(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdCertParameters obj)
virtual void setCertParameters(OdCertParameters certParams)
static HandleRef getCPtr(OdDwfxSignatureHandler obj)
static string getRealClassName(IntPtr ptr)
virtual bool signPackage(String filePath)
OdDwfxSignatureHandler(IntPtr cPtr, bool cMemoryOwn)
virtual bool validatePackageSignature(String filePath, out OdDwfxSignatureHandler.SignatureValidationResult validationResult, OdCertParameters certParams)
virtual void Dispose(bool disposing)
virtual bool removeExistingSignature(String filePath)