Example #1
0
        public override void ReadAttributes(Session session)
        {
            base.ReadAttributes(session);

            application = ReadAttribute(session, HObj, new CharArrayAttribute(CKA.APPLICATION));
            objectID    = ReadAttribute(session, HObj, new ByteArrayAttribute(CKA.OBJECT_ID));
            value_      = ReadAttribute(session, HObj, new ByteArrayAttribute(CKA.VALUE));
        }
Example #2
0
        public override void ReadAttributes(Session session)
        {
            base.ReadAttributes(session);

            token_ = ReadAttribute(session, HObj, new BooleanAttribute(CKA.TOKEN));

            private_ = ReadAttribute(session, HObj, new BooleanAttribute(CKA.PRIVATE));

            modifiable_ = ReadAttribute(session, HObj, new BooleanAttribute(CKA.MODIFIABLE));

            label_ = ReadAttribute(session, HObj, new CharArrayAttribute(CKA.LABEL));
        }
Example #3
0
 public static CharArrayAttribute ReadAttribute(Session session, uint hObj, CharArrayAttribute attr)
 {
     return((CharArrayAttribute)GetAttribute(session, hObj, attr));
 }