NDNts
    Preparing search index...

    Class Certificate

    NDN Certificate v2.

    This type is immutable.

    Index
    data: Data
    validity: ValidityPeriod
    • get isSelfSigned(): boolean

      Whether this is a self-signed certificate.

      Returns boolean

      A certificate is considered self-signed if its issuer key name is same as the certificate's key name, i.e. they are the same key.

    • get publicKeySpki(): Uint8Array

      Public key in SubjectPublicKeyInfo (SPKI) binary format.

      Returns Uint8Array

    • Ensure certificate is within validity period.

      Parameters

      • now: TimestampInput = ...

      Returns void

      Error Certificate has expired as of now.