ndn-cxx exported credentials.

Hierarchy

  • Readonly<Fields>
    • SafeBag

Properties

certificate: Certificate
encryptedKey: Uint8Array<ArrayBufferLike>

Methods

  • Decrypt private key.

    Parameters

    • passphrase: string | Uint8Array<ArrayBufferLike>

      SafeBag passphrase.

    Returns Promise<Uint8Array<ArrayBufferLike>>

    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<ArrayBufferLike>
    • passphrase: string | Uint8Array<ArrayBufferLike>

    Returns Promise<SafeBag>