Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Credentials

Index

Constructors

constructor

  • new Credentials(uniqueIdentifier: string, identifier: Buffer, pairingId: string, publicKey: Buffer, encryptionKey: Buffer): Credentials

Properties

encryptionKey

encryptionKey: Buffer

identifier

identifier: Buffer

pairingId

pairingId: string

publicKey

publicKey: Buffer

readKey

readKey: Buffer

uniqueIdentifier

uniqueIdentifier: string

writeKey

writeKey: Buffer

Methods

decrypt

  • decrypt(message: Buffer): Buffer

encrypt

  • encrypt(message: Buffer): Buffer

toString

  • toString(): string
  • Returns a string representation of a Credentials object.

    Returns string

    A string representation of a Credentials object.

Static parse

  • Parse a credentials string into a Credentials object.

    Parameters

    • text: string

      The credentials string.

    Returns Credentials

    A credentials object.

Generated using TypeDoc