root/middleware-offline/trunk/_src/eidmw/eidlibCS_Wrapper/GeneratedFiles/PTEID_Crl.cs @ 5

Revision 5, 2.9 KB (checked in by vsilva, 9 years ago)

Initial comit

Line 
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.35
4 *
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9namespace be.portugal.eid {
10
11using System;
12using System.Runtime.InteropServices;
13
14public class PTEID_Crl : PTEID_Object {
15  private HandleRef swigCPtr;
16
17  internal PTEID_Crl(IntPtr cPtr, bool cMemoryOwn) : base(pteidlib_dotNetPINVOKE.PTEID_CrlUpcast(cPtr), cMemoryOwn) {
18    swigCPtr = new HandleRef(this, cPtr);
19  }
20
21  internal static HandleRef getCPtr(PTEID_Crl obj) {
22    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
23  }
24
25  ~PTEID_Crl() {
26    Dispose();
27  }
28
29  public override void Dispose() {
30    lock(this) {
31      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
32        swigCMemOwn = false;
33        pteidlib_dotNetPINVOKE.delete_PTEID_Crl(swigCPtr);
34      }
35      swigCPtr = new HandleRef(null, IntPtr.Zero);
36      GC.SuppressFinalize(this);
37      base.Dispose();
38    }
39  }
40
41  public PTEID_Crl(string uri) : this(pteidlib_dotNetPINVOKE.new_PTEID_Crl(uri), true) {
42    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
43  }
44
45  public string getUri() {
46    string ret = pteidlib_dotNetPINVOKE.PTEID_Crl_getUri(swigCPtr);
47    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
48    return ret;
49  }
50
51  public string getIssuerName() {
52    string ret = pteidlib_dotNetPINVOKE.PTEID_Crl_getIssuerName(swigCPtr);
53    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
54    return ret;
55  }
56
57  public PTEID_Certificate getIssuer() {
58    PTEID_Certificate ret = new PTEID_Certificate(pteidlib_dotNetPINVOKE.PTEID_Crl_getIssuer(swigCPtr), false);
59    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
60    return ret;
61  }
62
63  public PTEID_CrlStatus getData(PTEID_ByteArray crl, bool bForceDownload) {
64    PTEID_CrlStatus ret = (PTEID_CrlStatus)pteidlib_dotNetPINVOKE.PTEID_Crl_getData__SWIG_0(swigCPtr, PTEID_ByteArray.getCPtr(crl), bForceDownload);
65    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
66    return ret;
67  }
68
69  public PTEID_CrlStatus getData(PTEID_ByteArray crl) {
70    PTEID_CrlStatus ret = (PTEID_CrlStatus)pteidlib_dotNetPINVOKE.PTEID_Crl_getData__SWIG_1(swigCPtr, PTEID_ByteArray.getCPtr(crl));
71    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
72    return ret;
73  }
74
75}
76
77}
Note: See TracBrowser for help on using the browser.