Class Index | File Index

Classes


Class HSMKeyStore

Class implementing some simple access functions to generate key pairs and store certificates
Defined in: hsmkeystore.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Create a simple key store front-end
Method Summary
Method Attributes Method Name and Description
 
deleteKey(label)
Delete key and certificate with given label
 
Return list of keys
 
generateECCKeyPair(label, curve)
Generate an ECDSA key pair
 
generateRSAKeyPair(label, keysize)
Generate a RSA key pair
 
Get certificate for given label
 
getKey(label)
Get key for given label
 
Store certificate under given label
Class Detail
HSMKeyStore(sc)
Create a simple key store front-end
Parameters:
{SmartCardHSM} sc
the SmartCard-HSM card service
Method Detail
deleteKey(label)
Delete key and certificate with given label
Parameters:
{String} label
the label of the key to be removed

{String[]} enumerateKeys()
Return list of keys
Returns:
the list of key names

generateECCKeyPair(label, curve)
Generate an ECDSA key pair
Parameters:
{String} label
the label under which the key pair shall be stored
{String} curve
the curve object identifier

generateRSAKeyPair(label, keysize)
Generate a RSA key pair
Parameters:
{String} label
the label under which the key pair shall be stored
{Number} keysize
the key size in bits (1024, 1536 or 2048)

{X509} getEndEntityCertificate(label)
Get certificate for given label
Parameters:
{String} label
the certificate label
Returns:
the certificate

{Key} getKey(label)
Get key for given label
Parameters:
{String} label
the certificate label
Returns:
the key

storeEndEntityCertificate(label, cert)
Store certificate under given label
Parameters:
{String} label
the label under which the certificate shall be stored
{X509} cert
the certificate

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