Discuss this help topic in SecureBlackbox Forum

TElAppleCertStorage.Add

TElAppleCertStorage     See also     


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


Adds the certificate to the storage

Declaration

[C#/Java]
    void Add(TElX509Certificate Certificate, bool CopyPrivateKey /* = true */);
    void Add(TElX509Certificate Certificate, string keychainPath, bool CopyPrivateKey /* = false */, bool setTrusted /* = true */); // SB_APPLE_KEYCHAIN_iOS is not defined
    void Add(TElX509Certificate Certificate, string accessGroup /* = '' */, bool CopyPrivateKey /* = false */, bool accessibleThisDeviceOnly /* = false */); // SB_APPLE_KEYCHAIN_iOS is defined
    void Add(TElX509Certificate Certificate, bool BindToExistingPrivateKey, string keychainPath, bool setTrusted /* = true */); // SB_APPLE_KEYCHAIN_iOS is not defined
    void Add(TElX509Certificate Certificate, bool BindToExistingPrivateKey, string accessGroup, bool accessibleThisDeviceOnly /* = false */); // SB_APPLE_KEYCHAIN_iOS is defined

[VB.NET]
    Sub Add(ByVal Certificate As TElX509Certificate, ByVal CopyPrivateKey As Boolean = True)
    Sub Add(ByVal Certificate As TElX509Certificate, ByVal keychainPath As String, ByVal CopyPrivateKey As Boolean = False, ByVal setTrusted As Boolean = True) // SB_APPLE_KEYCHAIN_iOS is not defined
    Sub Add(ByVal Certificate As TElX509Certificate, ByVal accessGroup As UnicodeString = '', ByVal CopyPrivateKey As Boolean = False, ByVal accessibleThisDeviceOnly As Boolean = False) // SB_APPLE_KEYCHAIN_iOS is defined
    Sub Add(ByVal Certificate As TElX509Certificate, ByVal BindToExistingPrivateKey As Boolean, ByVal keychainPath As String, ByVal setTrusted As Boolean = True) // SB_APPLE_KEYCHAIN_iOS is not defined
    Sub Add(ByVal Certificate As TElX509Certificate, ByVal BindToExistingPrivateKey As Boolean, ByVal accessGroup As String, ByVal accessibleThisDeviceOnly As Boolean = False); // SB_APPLE_KEYCHAIN_iOS is defined

[Pascal]
    procedure Add(Certificate: TElX509Certificate; CopyPrivateKey: boolean = true);
    procedure Add(Certificate: TElX509Certificate; const keychainPath: WideString; CopyPrivateKey: boolean = false; setTrusted: boolean = true); // SB_APPLE_KEYCHAIN_iOS is not defined
    procedure Add(Certificate: TElX509Certificate; const accessGroup: WideString = ''; CopyPrivateKey: boolean = false; accessibleThisDeviceOnly: boolean = false); // SB_APPLE_KEYCHAIN_iOS is defined
    procedure Add(Certificate: TElX509Certificate; BindToExistingPrivateKey : boolean; const keychainPath: WideString; setTrusted: boolean = true); // SB_APPLE_KEYCHAIN_iOS is not defined
    procedure Add(Certificate: TElX509Certificate; BindToExistingPrivateKey : boolean; const accessGroup: WideString; accessibleThisDeviceOnly: boolean = false); // SB_APPLE_KEYCHAIN_iOS is defined

[C++]
    not available

[PHP]
    not available

Parameters

  • Certificate - Certificate object, initialized byLoadFromBuffer method
  • CopyPrivateKey - True - private key will be copied when certifiate is added.False - private key will not be copied.
  • accessGroup - ...
  • accessibleThisDeviceOnly - ...
  • BindToExistingPrivateKey - ...
  • keychainPath - ...
  • setTrusted - ...

Description

    Use this method in derived classes to add certificate to store. The certificate is copied to the storage and original certificate can be disposed of if necessary.

See also:     ...    

Discuss this help topic in SecureBlackbox Forum