Class CVCertificateStore

Object
   |
   +--CVCertificateStore

class CVCertificateStore


Class that abstracts a certificate and key store for a EAC PKI.
Defined in cvcertstore.js


Field Summary
 Object path
          
 
Constructor Summary
CVCertificateStore(<String> path)
            Create an object to access a certificate store.
 
Method Summary
 boolean deleteCertificate(<String> path, <PublicKeyReference> chr, <boolean> selfsigned)
           Remove certificate
 boolean deletePrivateKey(<String> path, <PublicKeyReference> chr)
           Remove private key
 boolean deleteRequest(<String> path, <PublicKeyReference> chr)
           Remove request
 CVC getCertificate(<String> path, <PublicKeyReference> chr, <boolean> selfsigned)
           Return certificate for a given CHR
 ByteString getCertificateBinary(<String> path, <PublicKeyReference> chr, <boolean> selfsigned)
           Return certificate for a given CHR in binary format
 CVC[] getCertificateChain(<String> path, <PublicKeyReference> tochr, <PublicKeyReference> fromcar)
           Return a chain of certificates resembling a path from root to end entity.
 CVC[] getCertificateChainFor(<PublicKeyReference> cvcaref)
           Returns a certificate chain for the current terminal certificate up to, but not including the the CVCA certificated referenced.
 PublicKeyReference getCHRForSequenceNumber(<String> path, sequence, <String> countryseq)
           Create a CHR for the given path and sequence number
 Crypto getCrypto()
           Return a suitable crypto object.
 PublicKeyReference getCurrentCHR(<String> path)
           Return the current CHR for which a valid certificate exists
 CVC getCVCACertificateFor(<PublicKeyReference> cvcaref)
           Returns the country verifying certification authority's certificate for a given CVCA reference.
 XML getDefaultConfig()
           Create a default configuration
 Key getDefaultDomainParameter(<String> path)
           Returns the default domain parameter for a given PKI
 ByteString getDefaultPublicKeyOID(<String> path)
           Returns the default algorithm identifier OID from the most recent link certificate
 Key getDomainParameter(<String> path, <PublicKeyReference> chr)
           Returns the domain parameter for a certificate identified by its CHR
 CVC getDVCACertificateFor(<PublicKeyReference> cvcaref, <PublicKeyReference> dvcaref)
           Returns the document verifier certificate for a given CVCA and DV reference.
 PublicKeyReference getNextCHR(<String> path, <String> countryseq)
           Return the next CHR
 Key getPrivateKey(<String> path, <PublicKeyReference> chr)
           Get a private key in the certificate store
 CVC getRequest(<String> path, <PublicKeyReference> chr)
           Return request for given CHR
 CVC getTerminalCertificateFor(<PublicKeyReference> cvcaref)
           Returns the current terminal certificate for a given CVCA reference.
 Key getTerminalKeyFor(<PublicKeyReference> cvcaref)
           Return the current terminal key for a PKI identified by the CVCA reference
 boolean insertCertificate(<Crypto> crypto, <CVC> cvc, <String> cvcahint)
           Insert a single certificates into the certificate store
 CVC[] insertCertificates(<Crypto> crypto, <CVC[]> certlist, <Boolean> insertSelfSigned)
           Insert certificates into certificate store
 CVC[] insertCertificates2(<Crypto> crypto, <CVC[]> certlist, <Boolean> insertSelfSigned, <String> cvcahint)
           Insert certificates into certificate store
 CVC[] listCertificates(<String> path)
           List certificates stored for given PKI element sorted by CHR
 String[] listHolders(<String> path)
           List certificate holders for a given PKI element
 XML loadConfig(<String> path)
           Load configuration
 String mapPath(<String> path)
           Map to absolute path on file system
 void saveConfig(<String> path, <XML> cfg)
           Save configuration
 void storeCertificate(<String> path, <CVC> cert, <Boolean> makeCurrent)
           Store a certificate in the certificate store
 void storePrivateKey(<String> path, <PublicKeyReference> chr, <Key> prk)
           Store a private key in the certificate store
 void storeRequest(<String> path, <CVC> req)
           Store a certificate request in the certificate store
<static> void checkPath(path)
           Check path for legal encodings
<static> String encodeBase36(<Number> value)
           Encode a three character alpha-numeric sequence number
<static> ByteString loadBinaryFile(<String> filename)
           Loads a binary file from disk
<static> XML loadXMLFile(<String> filename)
           Loads a XML file from disk
<static> String nthElementOf(<String> path, n)
           Return the n-element of the path
<static> String parentPathOf(<String> path)
           Strip the last element of the path, effectively defining the parent within the path
<static> void saveBinaryFile(<String> filename, <ByteString> data)
           Saves a binary file to disk
<static> void saveXMLFile(<String> filename, xml)
           Saves XML to disk

Field Detail

path

Object path

Constructor Detail

CVCertificateStore

CVCertificateStore(<String> path)

Method Detail

deleteCertificate

boolean deleteCertificate(<String> path, <PublicKeyReference> chr, <boolean> selfsigned)

deletePrivateKey

boolean deletePrivateKey(<String> path, <PublicKeyReference> chr)

deleteRequest

boolean deleteRequest(<String> path, <PublicKeyReference> chr)

getCertificate

CVC getCertificate(<String> path, <PublicKeyReference> chr, <boolean> selfsigned)

getCertificateBinary

ByteString getCertificateBinary(<String> path, <PublicKeyReference> chr, <boolean> selfsigned)

getCertificateChain

CVC[] getCertificateChain(<String> path, <PublicKeyReference> tochr, <PublicKeyReference> fromcar)

getCertificateChainFor

CVC[] getCertificateChainFor(<PublicKeyReference> cvcaref)

getCHRForSequenceNumber

PublicKeyReference getCHRForSequenceNumber(<String> path, sequence, <String> countryseq)

getCrypto

Crypto getCrypto()

getCurrentCHR

PublicKeyReference getCurrentCHR(<String> path)

getCVCACertificateFor

CVC getCVCACertificateFor(<PublicKeyReference> cvcaref)

getDefaultConfig

XML getDefaultConfig()

getDefaultDomainParameter

Key getDefaultDomainParameter(<String> path)

getDefaultPublicKeyOID

ByteString getDefaultPublicKeyOID(<String> path)

getDomainParameter

Key getDomainParameter(<String> path, <PublicKeyReference> chr)

getDVCACertificateFor

CVC getDVCACertificateFor(<PublicKeyReference> cvcaref, <PublicKeyReference> dvcaref)

getNextCHR

PublicKeyReference getNextCHR(<String> path, <String> countryseq)

getPrivateKey

Key getPrivateKey(<String> path, <PublicKeyReference> chr)

getRequest

CVC getRequest(<String> path, <PublicKeyReference> chr)

getTerminalCertificateFor

CVC getTerminalCertificateFor(<PublicKeyReference> cvcaref)

getTerminalKeyFor

Key getTerminalKeyFor(<PublicKeyReference> cvcaref)

insertCertificate

boolean insertCertificate(<Crypto> crypto, <CVC> cvc, <String> cvcahint)

insertCertificates

CVC[] insertCertificates(<Crypto> crypto, <CVC[]> certlist, <Boolean> insertSelfSigned)

insertCertificates2

CVC[] insertCertificates2(<Crypto> crypto, <CVC[]> certlist, <Boolean> insertSelfSigned, <String> cvcahint)

listCertificates

CVC[] listCertificates(<String> path)

listHolders

String[] listHolders(<String> path)

loadConfig

XML loadConfig(<String> path)

mapPath

String mapPath(<String> path)

saveConfig

void saveConfig(<String> path, <XML> cfg)

storeCertificate

void storeCertificate(<String> path, <CVC> cert, <Boolean> makeCurrent)

storePrivateKey

void storePrivateKey(<String> path, <PublicKeyReference> chr, <Key> prk)

storeRequest

void storeRequest(<String> path, <CVC> req)

checkPath

<static> void checkPath(path)

encodeBase36

<static> String encodeBase36(<Number> value)

loadBinaryFile

<static> ByteString loadBinaryFile(<String> filename)

loadXMLFile

<static> XML loadXMLFile(<String> filename)

nthElementOf

<static> String nthElementOf(<String> path, n)

parentPathOf

<static> String parentPathOf(<String> path)

saveBinaryFile

<static> void saveBinaryFile(<String> filename, <ByteString> data)

saveXMLFile

<static> void saveXMLFile(<String> filename, xml)


Documentation generated by JSDoc on Tue Sep 3 22:29:38 2013