Class Index | File Index

Classes


Class HSMCVCertificateStore

CV certificate store with SmartCard-HSM as secure key store
Defined in: HSMCVCertificateStore.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Create a CV certificate store using a SmartCard-HSM as secure key store
Method Summary
Method Attributes Method Name and Description
 
deletePrivateKey(path, chr)
Get a private key in the certificate store.
 
generateRequest(path, car, forceInitial, signinitial, keyspec, algo, countryseq)
Generate a certificate request using a private key in the SmartCard-HSM
 
Get crypto object
 
getPrivateKey(path, chr)
Get a private key in the certificate store.
<static>  
HSMCVCertificateStore.path2label(path, chr)
Transform path and certificate holder into a label
Class Detail
HSMCVCertificateStore(daof, sc)
Create a CV certificate store using a SmartCard-HSM as secure key store
Parameters:
{DAOFactory} daof
the factory that can create data access objects for persistent information
{SmartCardHSM} sc
the SmartCard-HSM access object
Method Detail
{Key} deletePrivateKey(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

{CVC} generateRequest(path, car, forceInitial, signinitial, keyspec, algo, countryseq)
Generate a certificate request using a private key in the SmartCard-HSM
Parameters:
{String} path
the relative path of the PKI element (e.g. "/UTCVCA1/UTDVCA1")
{PublicKeyReference} car
the CA at which this request is addressed
{boolean} forceInitial
force an initial request, even if a current certificate is available
{boolean} signinitial
sign with initial key (sequence = 00000)
{Key} keyspec
a key object containing key parameters (e.g. EC Curve)
{ByteString} algo
the terminal authentication algorithm object identifier
countryseq
Returns:
the certificate request

{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} HSMCVCertificateStore.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 Apr 11 2025 18:23:13 GMT+0200 (CEST)