Net.Pkcs11Interop.HighLevelAPI81.Session.GetAttributeValue C# (CSharp) Method

GetAttributeValue() public method

Obtains the value of one or more attributes of an object
public GetAttributeValue ( ObjectHandle objectHandle, List attributes ) : List
objectHandle ObjectHandle Handle of object whose attributes should be read
attributes List List of attributes that should be read
return List
        public List<ObjectAttribute> GetAttributeValue(ObjectHandle objectHandle, List<CKA> attributes)
        {
            if (this._disposed)
                throw new ObjectDisposedException(this.GetType().FullName);

            if (objectHandle == null)
                throw new ArgumentNullException("objectHandle");

            if (attributes == null)
                throw new ArgumentNullException("attributes");

            if (attributes.Count < 1)
                throw new ArgumentException("No attributes specified", "attributes");

            List<ulong> ulongAttributes = new List<ulong>();
            foreach (CKA attribute in attributes)
                ulongAttributes.Add(Convert.ToUInt64((uint)attribute));

            return GetAttributeValue(objectHandle, ulongAttributes);
        }

Same methods

Session::GetAttributeValue ( ObjectHandle objectHandle, List attributes ) : List