Class KeyChainAbstract

Storage of own private keys and certificates.

Hierarchy

  • KeyChain

Constructors

Properties

needJwk: boolean

Return whether insertKey function expects JsonWebKey instead of CryptoKey.

Methods

  • Delete key pair and associated certificates.

    Parameters

    • name: Name

    Returns Promise<void>

  • Create a signer from keys and certificates in the KeyChain.

    Parameters

    • name: Name

      subject name, key name, or certificate name.

    • __namedParameters: GetSignerOptions = {}

    Returns Promise<Signer>

    Li

    If name is a certificate name, sign with the corresponding private key, and use the specified certificate name as KeyLocator.

    Li

    If name is a key name, sign with the specified private key. If a non-self-signed certificate exists for this key, use the certificate name as KeyLocator. Otherwise, use the key name as KeyLocator.

    Li

    If name is neither certificate name nor key name, it is interpreted as a subject name. A non-self-signed certificate of this subject name is preferred. If such a certificate does not exist, use any key of this subject name.

    Li

    If prefixMatch is true, name can also be interpreted as a prefix of the subject name.

  • List certificates, filtered by name prefix.

    Parameters

    • Optional prefix: Name

    Returns Promise<Name[]>

  • List keys, filtered by name prefix.

    Parameters

    • Optional prefix: Name

    Returns Promise<Name[]>

Generated using TypeDoc