Class X509CertificateGenerator

Object
   |
   +--X509CertificateGenerator

class X509CertificateGenerator


Class implementing a X.509 certificate generator
Defined in x509certificategenerator.js


Field Summary
 Object crypto
          
 Object encodeECDomainParameter
          
<static>  Object cRLSign
          
<static>  Object dataEncipherment
          
<static>  Object decipherOnly
          
<static>  Object digitalSignature
          
<static>  Object encipherOnly
          
<static>  Object keyAgreement
          
<static>  Object keyCertSign
          
<static>  Object keyEncipherment
          
<static>  Object nonRepudiation
          
 
Constructor Summary
X509CertificateGenerator(<Crypto> crypto)
            Create a X.509 certificate generator.
 
Method Summary
 void addAuthorityKeyIdentifierExtension(<Key> publicKey)
           Adds the authority public key identifier extension based on the issuers key.
 void addBasicConstraintsExtension(<Boolean> cA, <Number> pathLenConstraint)
           Adds the BasicConstraints extension.
 void addCRLDistributionPointURL(<String[]> url)
           Adds the CRL distribution point URLs.
 void addExtendedKeyUsages(<String[]> oids, <Boolean> critical)
           Adds the extended key usage extension
 void addExtension(<String> extnID, <Boolean> critical, extnValue)
           Adds an extension to the certificate
 void addKeyUsageExtension(flags)
           Adds the key usage extension.
 void addSubjectKeyIdentifierExtension()
           Adds the subject public key identifier extension based on the certificates subject key.
 X509 generateX509Certificate(privateKey)
           Generates the certificate.
 ASN1 getExtensions()
           Gets the certificate extension as TLV object
 ASN1 getIssuer()
           Gets the issuer name as TLV object
 ASN1 getSignatureAlgorithm()
           Gets the signature algorithm TLV object
 ASN1 getSubject()
           Gets the subject name as TLV object
 ASN1 getSubjectPublicKeyInfo()
           Gets the subject's public key as TLV object
 ASN1 getTbsCertificate()
           Gets the part of the certificate that will be signed
 ASN1 getValidity()
           Gets the certificate validity as TLV object
 void reset()
           Resets all internal state variables.
 void setIssuer(<Object> issuer)
           Sets the isser name.
 void setNotAfter(date)
           Sets the expiration date for the certificate.
 void setNotBefore(date)
           Sets the effective date for the certificate.
 void setPublicKey(<Key> publicKey)
           Sets the subjects public key
 void setSerialNumber(<ByteString> serialNumber)
           Sets the serial number.
 void setSignatureAlgorithm(<Number> alg)
           Sets the signature algorithm.
 void setSubject(<Object> subject)
           Sets the subject name.

Field Detail

crypto

Object crypto

encodeECDomainParameter

Object encodeECDomainParameter

cRLSign

<static> Object cRLSign

dataEncipherment

<static> Object dataEncipherment

decipherOnly

<static> Object decipherOnly

digitalSignature

<static> Object digitalSignature

encipherOnly

<static> Object encipherOnly

keyAgreement

<static> Object keyAgreement

keyCertSign

<static> Object keyCertSign

keyEncipherment

<static> Object keyEncipherment

nonRepudiation

<static> Object nonRepudiation

Constructor Detail

X509CertificateGenerator

X509CertificateGenerator(<Crypto> crypto)

Method Detail

addAuthorityKeyIdentifierExtension

void addAuthorityKeyIdentifierExtension(<Key> publicKey)

addBasicConstraintsExtension

void addBasicConstraintsExtension(<Boolean> cA, <Number> pathLenConstraint)

addCRLDistributionPointURL

void addCRLDistributionPointURL(<String[]> url)

addExtendedKeyUsages

void addExtendedKeyUsages(<String[]> oids, <Boolean> critical)

addExtension

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

addKeyUsageExtension

void addKeyUsageExtension(flags)

addSubjectKeyIdentifierExtension

void addSubjectKeyIdentifierExtension()

generateX509Certificate

X509 generateX509Certificate(privateKey)

getExtensions

ASN1 getExtensions()

getIssuer

ASN1 getIssuer()

getSignatureAlgorithm

ASN1 getSignatureAlgorithm()

getSubject

ASN1 getSubject()

getSubjectPublicKeyInfo

ASN1 getSubjectPublicKeyInfo()

getTbsCertificate

ASN1 getTbsCertificate()

getValidity

ASN1 getValidity()

reset

void reset()

setIssuer

void setIssuer(<Object> issuer)

setNotAfter

void setNotAfter(date)

setNotBefore

void setNotBefore(date)

setPublicKey

void setPublicKey(<Key> publicKey)

setSerialNumber

void setSerialNumber(<ByteString> serialNumber)

setSignatureAlgorithm

void setSignatureAlgorithm(<Number> alg)

setSubject

void setSubject(<Object> subject)


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