Net.Pkcs11Interop.HighLevelAPI81.ObjectAttribute.ObjectAttribute C# (CSharp) Method

ObjectAttribute() public method

Creates attribute of given type with attribute array value
public ObjectAttribute ( CKA type, List value ) : System
type CKA Attribute type
value List Attribute value
return System
        public ObjectAttribute(CKA type, List<ObjectAttribute> value)
        {
            CK_ATTRIBUTE[] attributes = null;
            
            if (value != null)
            {
                attributes = new CK_ATTRIBUTE[value.Count];
                for (int i = 0; i < value.Count; i++)
                    attributes[i] = value[i].CkAttribute;
            }

            // Note: Each attribute in the input list still owns unmanaged memory used by its value and will free it when disposed.
            _ckAttribute = CkaUtils.CreateAttribute(type, attributes);
        }

Same methods

ObjectAttribute::ObjectAttribute ( CKA type ) : System
ObjectAttribute::ObjectAttribute ( CKA type, CKC value ) : System
ObjectAttribute::ObjectAttribute ( CKA type, CKK value ) : System
ObjectAttribute::ObjectAttribute ( CKA type, CKO value ) : System
ObjectAttribute::ObjectAttribute ( CKA type, System.DateTime value ) : System
ObjectAttribute::ObjectAttribute ( CKA type, List value ) : System
ObjectAttribute::ObjectAttribute ( CKA type, List value ) : System
ObjectAttribute::ObjectAttribute ( CKA type, bool value ) : System
ObjectAttribute::ObjectAttribute ( CKA type, byte value ) : System
ObjectAttribute::ObjectAttribute ( CKA type, string value ) : System
ObjectAttribute::ObjectAttribute ( CKA type, ulong value ) : System
ObjectAttribute::ObjectAttribute ( CK_ATTRIBUTE attribute ) : System
ObjectAttribute::ObjectAttribute ( ulong type ) : System
ObjectAttribute::ObjectAttribute ( ulong type, System.DateTime value ) : System
ObjectAttribute::ObjectAttribute ( ulong type, List value ) : System
ObjectAttribute::ObjectAttribute ( ulong type, List value ) : System
ObjectAttribute::ObjectAttribute ( ulong type, List value ) : System
ObjectAttribute::ObjectAttribute ( ulong type, bool value ) : System
ObjectAttribute::ObjectAttribute ( ulong type, byte value ) : System
ObjectAttribute::ObjectAttribute ( ulong type, string value ) : System
ObjectAttribute::ObjectAttribute ( ulong type, ulong value ) : System