Discuss this help topic in SecureBlackbox Forum

TElPKCS11CertStorage.Add

TElPKCS11CertStorage     See also     


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


Adds the certificate to storage

Declaration

[C#/Java]
    void Add(TElX509Certificate X509Certificate, bool CopyPrivateKey/* = true */);
    void Add(int SessionIndex, TElX509Certificate X509Certificate, bool CopyPrivateKey /* = true */, bool Exportable /* = false */);

[VB.NET]
    Sub Add(ByVal X509Certificate As TElX509Certificate, ByVal CopyPrivateKey As Boolean = True)
    Sub Add(ByVal SessionIndex As Integer, ByVal X509Certificate As TElX509Certificate, ByVal CopyPrivateKey As Boolean = true, ByVal Exportable As Boolean = False)

[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)

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