Class CRLGenerator

Object
   |
   +--CRLGenerator

class CRLGenerator


Class implementing a CRL certificate generator
Defined in crlgenerator.js


Field Summary
 Object crypto
          
<static>  Object aACompromise
          
<static>  Object affiliationChanged
          
<static>  Object cACompromise
          
<static>  Object certificateHold
          
<static>  Object cessationOfOperation
          
<static>  Object keyCompromise
          
<static>  Object privilegeWithdrawn
          
<static>  Object removeFromCRL
          
<static>  Object superseded
          
<static>  Object unspecified
          
 
Constructor Summary
CRLGenerator(<Crypto> crypto)
            Create a Certificate Revocation List (CRL) generator.
 
Method Summary
 void addAuthorityKeyIdentifierExtension(publicKey)
           Adds the authority public key identifier extension based on the issuers key.
 void addCRLNumberExtension(crlnumber)
           Adds the CRL number extension.
 void addExtension(<String> extnID, <Boolean> critical, extnValue)
           Adds an extension to the CRL
 void addRevokedCertificate(<ASN1> revokedCertificate)
           Add a revoked certificate to the list.
 X509 generateCRL(privateKey)
           Generates the certificate.
 ASN1 getExtensions()
           Gets the CRL extension as TLV object
 ASN1 getIssuer()
           Gets the issuer name as TLV object
 ASN1 getNextUpdate()
           Gets the nextUpdate TLV object
 ASN1 getRevokedCertificates()
           Gets revoked certificates
 ASN1 getSignatureAlgorithm()
           Gets the signature algorithm TLV object
 ASN1 getTbsCertificateList()
           Gets the part of the CRL that will be signed
 ASN1 getThisUpdate()
           Gets the thisUpdate TLV object
 Number loadCRLEntries(<String> filename)
           Load list of revoked certificates from an existing CRL
 void reset()
           Resets all internal state variables.
 void revokeCertificate(<ByteString> serial, <Date> timestamp, reason, ext)
           Add a revoked certificate to the list.
 void setIssuer(<Object> issuer)
           Sets the isser name.
 void setNextUpdate(<Date> datetime)
           Sets the timestamp for the next update
 void setSignatureAlgorithm(<Number> alg)
           Sets the signature algorithm.
 void setThisUpdate(<Date> datetime)
           Sets the timestamp for this CRL

Field Detail

crypto

Object crypto

aACompromise

<static> Object aACompromise

affiliationChanged

<static> Object affiliationChanged

cACompromise

<static> Object cACompromise

certificateHold

<static> Object certificateHold

cessationOfOperation

<static> Object cessationOfOperation

keyCompromise

<static> Object keyCompromise

privilegeWithdrawn

<static> Object privilegeWithdrawn

removeFromCRL

<static> Object removeFromCRL

superseded

<static> Object superseded

unspecified

<static> Object unspecified

Constructor Detail

CRLGenerator

CRLGenerator(<Crypto> crypto)

Method Detail

addAuthorityKeyIdentifierExtension

void addAuthorityKeyIdentifierExtension(publicKey)

addCRLNumberExtension

void addCRLNumberExtension(crlnumber)

addExtension

void addExtension(<String> extnID, <Boolean> critical, extnValue)

addRevokedCertificate

void addRevokedCertificate(<ASN1> revokedCertificate)

generateCRL

X509 generateCRL(privateKey)

getExtensions

ASN1 getExtensions()

getIssuer

ASN1 getIssuer()

getNextUpdate

ASN1 getNextUpdate()

getRevokedCertificates

ASN1 getRevokedCertificates()

getSignatureAlgorithm

ASN1 getSignatureAlgorithm()

getTbsCertificateList

ASN1 getTbsCertificateList()

getThisUpdate

ASN1 getThisUpdate()

loadCRLEntries

Number loadCRLEntries(<String> filename)

reset

void reset()

revokeCertificate

void revokeCertificate(<ByteString> serial, <Date> timestamp, reason, ext)

setIssuer

void setIssuer(<Object> issuer)

setNextUpdate

void setNextUpdate(<Date> datetime)

setSignatureAlgorithm

void setSignatureAlgorithm(<Number> alg)

setThisUpdate

void setThisUpdate(<Date> datetime)


Documentation generated by JSDoc on Tue Apr 15 22:10:49 2025