EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElPKCS11CertStorage.AddKey

TElPKCS11CertStorage     See also    


 

Adds keys to the storage.

 
 

Declaration

[C#]
    int AddKey(int SessionIndex, TElKeyMaterial KeyMaterial, bool CopyPrivateKey /* = true */, bool Exportable /* = false */, byte[] ID /* = null */, byte[] KeyLabel /* = null */);
    int AddKey(TElKeyMaterial KeyMaterial, bool CopyPrivateKey /* = true */, bool Exportable /* = false */, byte[] ID /* = null */, byte[] KeyLabel /* = null */);

[VB.NET]
    Function AddKey(ByVal SessionIndex As Integer, ByVal KeyMaterial As TElKeyMaterial, ByVal CopyPrivateKey As Boolean = True, ByVal Exportable As Boolean = False, ByVal ID As Byte() = Nothing, ByVal KeyLabel As Byte() = Nothing) As Integer
    Function AddKey(ByVal KeyMaterial As TElKeyMaterial, ByVal CopyPrivateKey As Boolean = True, ByVal Exportable As Boolean = False, ByVal ID As Byte() = Nothing, ByVal KeyLabel As Byte() = Nothing) As Integer

[Pascal]
    function AddKey(SessionIndex : integer; KeyMaterial: TElKeyMaterial; CopyPrivateKey: boolean = True; Exportable: boolean = False; const ID: BufferType = nil; const KeyLabel: BufferType = nil): integer;
    function AddKey(KeyMaterial: TElKeyMaterial; CopyPrivateKey: boolean = True; Exportable: boolean = False; const ID: BufferType = nil; const KeyLabel: BufferType = nil): integer;

[VB6]
    not implemented;

[ActiveX]
    not implemented;

[DLL]
    not implemented;
 
 

Parameters

  • KeyMaterial - contains the key to be added
  • CopyPrivateKey - specifies if private part of the key should be 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 - contains key ID
  • KeyLabel - contains key label
 
 

Return value

    Index of the newly added key in the list.

 
 

Description

    Use this method to add a key to the cryptotoken storage.

 
 

See also:     Keys     KeyIDs     RemoveKey    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation