Builder
class Builder(publicKey: EcPublicKey, signingKey: EcPrivateKey, signatureAlgorithm: Algorithm, serialNumber: ASN1Integer, subject: X500Name, issuer: X500Name, validFrom: Instant, validUntil: Instant)
Builder for X.509 certificate.
Parameters
publicKey
the public key for the certificate.
signingKey
Tthe key to sign the TBSCertificate with.
signatureAlgorithm
the signature algorithm to sign with.
serialNumber
the serial number in the certificate.
subject
the subject of the certificate.
issuer
the issuer of the certificate.
validFrom
the point in time the certificate is valid from.
validUntil
the point in time the certificate is valid until.
Constructors
Link copied to clipboard
constructor(publicKey: EcPublicKey, signingKey: EcPrivateKey, signatureAlgorithm: Algorithm, serialNumber: ASN1Integer, subject: X500Name, issuer: X500Name, validFrom: Instant, validUntil: Instant)
Functions
Link copied to clipboard
Adds an X.509 extension to the certificate
Link copied to clipboard
Set the Authority Key Identifier with keyIdentifier set to the same value as the Subject Key Identifier.
Link copied to clipboard
Generate and include the Subject Key Identifier extension .
Link copied to clipboard
Sets Authority Key Identifier extension to the Subject Key Identifier of another certificate.
Link copied to clipboard
Sets the basic constraints of the certificate
Link copied to clipboard
Sets the key usage.