/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.35
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

namespace be.portugal.eid {

using System;
using System.Runtime.InteropServices;

/// <summary>
/// Class for the info document.
/// You can get such an object from PTEID_EIDCard::getVersionInfo() (or getDocument).
/// </summary>
public class PTEID_CardVersionInfo : PTEID_XMLDoc {
  private HandleRef swigCPtr;

  internal PTEID_CardVersionInfo(IntPtr cPtr, bool cMemoryOwn) : base(pteidlib_dotNetPINVOKE.PTEID_CardVersionInfoUpcast(cPtr), cMemoryOwn) {
    swigCPtr = new HandleRef(this, cPtr);
  }

  internal static HandleRef getCPtr(PTEID_CardVersionInfo obj) {
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  }

  ~PTEID_CardVersionInfo() {
    Dispose();
  }

  public override void Dispose() {
    lock(this) {
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
        swigCMemOwn = false;
        pteidlib_dotNetPINVOKE.delete_PTEID_CardVersionInfo(swigCPtr);
      }
      swigCPtr = new HandleRef(null, IntPtr.Zero);
      GC.SuppressFinalize(this);
      base.Dispose();
    }
  }

  /// <summary>Return the Serial Number of the card.</summary>
  public string getSerialNumber()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getSerialNumber(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the ComponenCode of the card.</summary>
  public string getComponentCode()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getComponentCode(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the OS Number of the card.</summary>
  public string getOsNumber()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getOsNumber(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the OS Version of the card.</summary>
  public string getOsVersion()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getOsVersion(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the Softmask Number of the card.</summary>
  public string getSoftmaskNumber()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getSoftmaskNumber(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the Softmask Version of the card.</summary>
  public string getSoftmaskVersion()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getSoftmaskVersion(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the Applet Version of the card.</summary>
  public string getAppletVersion()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getAppletVersion(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the Global Os Version of the card.</summary>
  public string getGlobalOsVersion()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getGlobalOsVersion(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the Applet Interface Version of the card.</summary>
  public string getAppletInterfaceVersion()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getAppletInterfaceVersion(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the PKCS#1 Support of the card.</summary>
  public string getPKCS1Support()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getPKCS1Support(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the Key Exchange Version of the card.</summary>
  public string getKeyExchangeVersion()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getKeyExchangeVersion(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the Applet Life Cycle of the card.</summary>
  public string getAppletLifeCycle()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getAppletLifeCycle(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return field GraphicalPersonalisation from the TokenInfo file.</summary>
  public string getGraphicalPersonalisation()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getGraphicalPersonalisation(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return field ElectricalPersonalisation from the TokenInfo file.</summary>
  public string getElectricalPersonalisation()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getElectricalPersonalisation(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return field ElectricalPersonalisationInterface from the TokenInfo file.</summary>
  public string getElectricalPersonalisationInterface()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getElectricalPersonalisationInterface(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return the signature of the card info.</summary>
  public PTEID_ByteArray getSignature()
  {
    PTEID_ByteArray ret = new PTEID_ByteArray(pteidlib_dotNetPINVOKE.PTEID_CardVersionInfo_getSignature(swigCPtr), false);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

}

}
