ndn-cxx exported credentials.

Hierarchy

  • Readonly<Fields>
    • SafeBag

Properties

certificate: Certificate
encryptedKey: Uint8Array

Methods

  • Decrypt private key.

    Parameters

    • passphrase: string | Uint8Array

      SafeBag passphrase.

    Returns Promise<Uint8Array>

    Unencrypted private key in PKCS8 format.

  • Save private key and public key to KeyChain.

    Parameters

    • passphrase: string

      SafeBag passphrase.

    • keyChain: KeyChain

      Destination KeyChain.

    • __namedParameters: ImportOptions = {}

    Returns Promise<void>

  • Create a SafeBag from certificate and private key.

    Parameters

    • certificate: Certificate
    • privateKey: Uint8Array
    • passphrase: string | Uint8Array

    Returns Promise<SafeBag>