Certificate

class Certificate(certificateHolder: X509CertificateHolder)

Relaynet PKI Certificate.

Parameters

certificateHolder

Bouncy Castle representation of the X.509 certificate

Constructors

Link copied to clipboard
constructor(certificateHolder: X509CertificateHolder)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Return the Common Name of the subject

Link copied to clipboard

The expiry date of the certificate.

Link copied to clipboard

Return the Common Name of the issuer

Link copied to clipboard

The start date of the certificate.

Link copied to clipboard

Calculate the id of the subject.

Link copied to clipboard

The public key of the subject.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Report whether this certificate equals another.

Link copied to clipboard

Get the certification path (aka certificate chain) between the current certificate and one of the trustedCAs.

Link copied to clipboard
open override fun hashCode(): Int

Return the hash code of the certificate.

Link copied to clipboard
fun isLikelyIssuer(potentialIssuer: Certificate): Boolean

Report whether potentialIssuer's Distinguished Name matches that of the issuer of the current certificate.

Link copied to clipboard

Return the DER serialization of the certificate.

Link copied to clipboard
fun validate()

Validate the certificate.