Class SmartCardHSMKey
Object
|
+--SmartCardHSMKey
- class
SmartCardHSMKey
Class implementing key access
Defined in smartcardhsm.js
|
Field Summary |
Object |
id
|
Object |
sc
|
|
Method Summary |
Number
|
getId()
Return the key identifier
|
String
|
getLabel()
Return the key label as encoded in the PKCS#15 structure
|
Number
|
getSize()
Return the key size in bits
|
void
|
setDescription(<ASN1> desc)
Set the PKCS#15 private key description
|
ByteString
|
sign(<Number> mech, <ByteString> data)
Sign data using a key in the SmartCard-HSM
|
Object
|
toString()
Return human readable string
|
id
Object id
sc
Object sc
SmartCardHSMKey
SmartCardHSMKey(<SmartCardHSM> sc, <Number> id)
Create a key access object
Parameters:
sc - the card access object
getId
Number getId()
Return the key identifier
getLabel
String getLabel()
Return the key label as encoded in the PKCS#15 structure
getSize
Number getSize()
Return the key size in bits
setDescription
void setDescription(<ASN1> desc)
Set the PKCS#15 private key description
sign
ByteString sign(<Number> mech, <ByteString> data)
Sign data using a key in the SmartCard-HSM
Parameters:
mech - the signing mechanism
toString
Object toString()
Return human readable string
Documentation generated by
JSDoc on Tue Sep 3 22:29:45 2013