Options
All
  • Public
  • Public/Protected
  • All
Menu

AuthData is a container for all the data required to perform actions on behalf of a Meeco User.

Note: Actual AuthData passed to method calls doesn't need to be an instance of this class - it can just conform to the interface.

Hierarchy

  • AuthData

Index

Constructors

constructor

  • new AuthData(config: { data_encryption_key: SymmetricKey; delegation_id?: string; key_encryption_key: SymmetricKey; keystore_access_token: string; oidc_token?: string; passphrase_derived_key: SymmetricKey; secret: string; vault_access_token: string }): AuthData

Properties

data_encryption_key

data_encryption_key: SymmetricKey

Optional delegation_id

delegation_id: string

key_encryption_key

key_encryption_key: SymmetricKey

keystore_access_token

keystore_access_token: string

Optional oidc_token

oidc_token: string

passphrase_derived_key

passphrase_derived_key: SymmetricKey

secret

secret: string

vault_access_token

vault_access_token: string

Methods

toJSON

  • toJSON(): { data_encryption_key: string; delegation_id: undefined | string; key_encryption_key: string; keystore_access_token: string; passphrase_derived_key: string; secret: string; vault_access_token: string }
  • Allow AuthData to be serialized for easier storage

    Returns { data_encryption_key: string; delegation_id: undefined | string; key_encryption_key: string; keystore_access_token: string; passphrase_derived_key: string; secret: string; vault_access_token: string }

    • data_encryption_key: string
    • delegation_id: undefined | string
    • key_encryption_key: string
    • keystore_access_token: string
    • passphrase_derived_key: string
    • secret: string
    • vault_access_token: string

Static fromJSON

Generated using TypeDoc