Discuss this help topic in SecureBlackbox Forum

TElPKCS11CertStorage.Add

TElPKCS11CertStorage     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Adds the certificate to storage

Declaration

[C#]
    void Add(TElX509Certificate X509Certificate, bool CopyPrivateKey);
    void Add(int SessionIndex, TElX509Certificate X509Certificate, bool CopyPrivateKey, bool Exportable);
    void Add(int SessionIndex, TElX509Certificate X509Certificate, bool CopyPrivateKey, bool Exportable, byte[] ID, byte[] KeyLabel);

[VB.NET]
    Sub Add(ByVal X509Certificate As TElX509Certificate, ByVal CopyPrivateKey As Boolean)
    Sub Add(ByVal SessionIndex As Integer, ByVal X509Certificate As TElX509Certificate, ByVal CopyPrivateKey As Boolean, ByVal Exportable As Boolean)
    Sub Add(ByVal SessionIndex As Integer, ByVal X509Certificate As TElX509Certificate, ByVal CopyPrivateKey As Boolean, ByVal Exportable As Boolean, ByVal ID As Byte(), ByVal KeyLabel As Byte())

[Pascal]
    procedure Add(X509Certificate: TElX509Certificate; CopyPrivateKey: boolean = true);
    procedure Add(SessionIndex : integer; X509Certificate: TElX509Certificate; CopyPrivateKey: boolean = true; Exportable : boolean = false);

[C++]
    void Add(TElX509Certificate &X509Certificate, bool CopyPrivateKey);
    void Add(TElX509Certificate *X509Certificate, bool CopyPrivateKey);
    void Add(int32_t SessionIndex, TElX509Certificate &X509Certificate, bool CopyPrivateKey, bool Exportable);
    void Add(int32_t SessionIndex, TElX509Certificate *X509Certificate, bool CopyPrivateKey, bool Exportable);
    void Add(int32_t SessionIndex, TElX509Certificate &X509Certificate, bool CopyPrivateKey, bool Exportable, const std::vector<uint8_t> &ID, const std::vector<uint8_t> &KeyLabel);
    void Add(int32_t SessionIndex, TElX509Certificate *X509Certificate, bool CopyPrivateKey, bool Exportable, const std::vector<uint8_t> &ID, const std::vector<uint8_t> &KeyLabel);

[PHP]
    void Add(TElX509Certificate $X509Certificate, bool $CopyPrivateKey)
    void Add(integer $SessionIndex, TElX509Certificate $X509Certificate, bool $CopyPrivateKey, bool $Exportable)
    void Add(integer $SessionIndex, TElX509Certificate $X509Certificate, bool $CopyPrivateKey, bool $Exportable, array of byte|string|NULL $ID, array of byte|string|NULL $KeyLabel)

[Java]
    void add(int SessionIndex, TElX509Certificate X509Certificate, boolean CopyPrivateKey, boolean Exportable);
    void add(int SessionIndex, TElX509Certificate X509Certificate, boolean CopyPrivateKey, boolean Exportable, byte[] ID, byte[] KeyLabel);
    void add(TElX509Certificate X509Certificate, boolean CopyPrivateKey);

Parameters

  • X509Certificate - Certificate object
  • CopyPrivateKey - specifies if certificate private key will be also added.
    Default value is True
  • SessionIndex - index of the session in the list.
  • Exportable - True - private key will be marked as exportable.
    False - private key will not be marked as exportable.
  • ID - ...
  • KeyLabel - ...

Description

    Use this method to add certificate to certificate store.

See also:     Remove    

Discuss this help topic in SecureBlackbox Forum