Class Index | File Index

Classes


Class P11CVCertificateStore

CV certificate store with PKCS#11 as secure key store
Defined in: P11CVCertificateStore.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
P11CVCertificateStore(daof, p11session)
Create a CV certificate store using a PKCS#11 device as secure key store
Method Summary
Method Attributes Method Name and Description
<static>  
P11CVCertificateStore.determineCurve(key)
Determine curve from key parameter
 
generateKeyPair(path, chr, algo, prk, puk)
Generate key pair
 
Get crypto object
 
getPrivateKey(path, chr)
Get a private key in the certificate store.
<static>  
P11CVCertificateStore.path2label(path, chr)
Transform path and certificate holder into a label
Class Detail
P11CVCertificateStore(daof, p11session)
Create a CV certificate store using a PKCS#11 device as secure key store
Parameters:
{DAOFactory} daof
the factory that can create data access objects for persistent information
{PKCS11Session} p11session
logged in PKCS#11 session with device
Method Detail
<static> {ByteString} P11CVCertificateStore.determineCurve(key)
Determine curve from key parameter
Parameters:
{Key} key
the key
Returns:
the curve OID

generateKeyPair(path, chr, algo, prk, puk)
Generate key pair
Parameters:
{String} path
the relative path of the PKI element (e.g. "/UTCVCA1/UTDVCA1/UTTERM")
{PublicKeyReference} chr
the public key reference for this key pair
{Number} algo
the key generation algorithm (Crypto.EC or Crypto.RSA)
{Key} prk
the private key template
{Key} puk
the public key template

{HSMCrypto} getCrypto()
Get crypto object
Returns:
the HSMCrypto object

{Key} getPrivateKey(path, chr)
Get a private key in the certificate store. Overrides method in CVCertificateStore.
Parameters:
{String} path
the relative path of the PKI element (e.g. "/UTCVCA1/UTDVCA1/UTTERM")
{PublicKeyReference} chr
the public key reference for this key
Returns:
the private key or null if not found

<static> {String} P11CVCertificateStore.path2label(path, chr)
Transform path and certificate holder into a label
Parameters:
{String} path
the path
{PublicKeyReference} chr
the certificate holder reference
Returns:
the key label

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Feb 16 2024 18:38:12 GMT+0100 (CET)