Discuss this help topic in SecureBlackbox Forum

TElPKCS11AttributeList.Add

TElPKCS11AttributeList     See also     


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


Adds attribute to the list.

Declaration

[C#]
    int Add();
    int Add(uint Attribute, byte[] Value);
    int Add(uint Attribute, uint Value);
    int Add(uint Attribute, bool Value);

[VB.NET]
    Function Add() As Integer
    Function Add(ByVal Attribute As UInt32, ByVal Value As Byte()) As Integer
    Function Add(ByVal Attribute As UInt32, ByVal Value As UInt32) As Integer
    Function Add(ByVal Attribute As UInt32, ByVal Value As Boolean) As Integer

[Pascal]
    function Add : integer;
    function Add(Attribute: Cardinal; const Value: ByteArray) : integer;
    function Add(Attribute: Cardinal; Value: Cardinal) : integer;
    function Add(Attribute: Cardinal; Value: boolean) : integer;

[C++]
    int32_t Add();
    int32_t Add(uint32_t Attribute, const std::vector<uint8_t> &Value);
    int32_t Add(uint32_t Attribute, uint32_t Value);
    int32_t Add(uint32_t Attribute, bool Value);

[PHP]
    integer Add()
    integer Add(integer $Attribute, array of byte|string|NULL $Value)
    integer Add(integer $Attribute, integer $Value)
    integer Add(integer $Attribute, bool $Value)

[Java]
    int add(long Attribute, byte[] Value);
    int add();
    int add(long Attribute, long Value);
    int add(long Attribute, boolean Value);

Parameters

  • Attribute - PKCS#11 attribute code
  • Value - Value which should be assigned to the attribute

Attribute codes:

Return value

    Index of the newly added item in the list.

Description

    Use this method to add an attribute to the list. Use an appropriate overload of this method depending of the data type of the attribute. Attribute codes and corresponding data types are described in PKCS #11: Cryptographic Token Interface Standard.

See also:     Attributes     Values     Remove    

Discuss this help topic in SecureBlackbox Forum