Class: PKCS11::ProtectServer::CK_ATTRIBUTE
- Inherits:
-
CK_ATTRIBUTE
- Object
- CK_ATTRIBUTE
- PKCS11::ProtectServer::CK_ATTRIBUTE
- Defined in:
- lib/pkcs11_protect_server/extensions.rb
Overview
Derive CK_ATTRIBUTE to get converted attributes.
Constant Summary collapse
- ATTRIBUTES =
{ CKA_EXPORT => :bool, CKA_EXPORTABLE => :bool, CKA_TRUSTED => :bool, CKA_DELETABLE => :bool, CKA_SIGN_LOCAL_CERT => :bool, CKA_IMPORT => :bool, CKA_USAGE_COUNT => :ulong, CKA_KEY_SIZE => :ulong, }
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/pkcs11_protect_server/extensions.rb', line 18 def value case ATTRIBUTES[type] when :bool super != "\0" when :ulong super.unpack("L!")[0] else super end end |