Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DecryptedKeypair

An asymmetric encryption (public/private) key pair, with the private key decrypted.

Encryption and decryption methods are defined on the classes {@link RSAPublickey} and {@link RSAPrivatekey} which may be used if only one key is available.

Hierarchy

  • DecryptedKeypair

Index

Constructors

constructor

  • new DecryptedKeypair(publicKey: string, privateKey: string, externalIds?: string[], keystoreId?: string): DecryptedKeypair
  • Parameters

    • publicKey: string

      PEM formatted public key string.

    • privateKey: string

      PEM formatted private key string.

    • externalIds: string[] = []

      An optional array of identifier strings from the Meeco Keystore.

    • Optional keystoreId: string

      An optional GUID for the Keypair in the Keystore. Typically only set if constructed with fromAPI.

    Returns DecryptedKeypair

Properties

externalIds

externalIds: string[] = []

Optional keystoreId

keystoreId: string

privateKey

privateKey: RSAPrivateKey

publicKey

publicKey: RSAPublicKey

Methods

Static fromAPI

Static generate

Generated using TypeDoc