Class Index | File Index

Classes


Class SmartCardHSMKey

Class implementing key access
Defined in: smartcardhsm.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
SmartCardHSMKey(sc, id)
Create a key access object
Method Summary
Method Attributes Method Name and Description
 
Return the key identifier
 
Return the key label as encoded in the PKCS#15 structure
 
Return the key size in bits
 
Set the PKCS#15 private key description
 
sign(data, mech)
Sign data using a key in the SmartCard-HSM
 
Return human readable string
Class Detail
SmartCardHSMKey(sc, id)
Create a key access object
Parameters:
{SmartCardHSM} sc
the card access object
{Number} id
the key identifier
Method Detail
{Number} getId()
Return the key identifier
Returns:
the key identifier

{String} getLabel()
Return the key label as encoded in the PKCS#15 structure
Returns:
the key label

{Number} getSize()
Return the key size in bits
Returns:
the key size in bits

setDescription(desc)
Set the PKCS#15 private key description
Parameters:
{ASN1} desc
the description

{ByteString} sign(data, mech)
Sign data using a key in the SmartCard-HSM
Parameters:
{ByteString} data
to be signed
{Number} mech
the signing mechanism
Returns:
the signature

toString()
Return human readable string

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jun 30 2014 21:40:15 GMT+0200 (CEST)