Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AccountManager

Implemented by

Index

Methods

authenticationByAccessToken

  • authenticationByAccessToken(accessToken: string, tokenType: TokenType, message: string): Promise<Account>
  • Checks if user with provided access token is already registered in the system.

    Parameters

    • accessToken: string

      token for authenticate on remote signer (if KeyPairHelper support AccessTokenAccepter)

    • tokenType: TokenType

      type of token

    • message: string

      on the basis of which a signature will be created to verify the public key

    Returns Promise<Account>

    {Account} if client exist or http exception if fail.

authenticationByPassPhrase

  • authenticationByPassPhrase(passPhrase: string, message: string): Promise<Account>
  • Checks or Register user with provided mnemonic phrase is already registered in the system.

    Parameters

    • passPhrase: string

      Mnemonic phrase for Public/Private key pair generation for asymmetric encryption scheme.

    • message: string

      on the basis of which a signature will be created to verify the public key

    Returns Promise<Account>

    {Account} if client exist or create new user.

checkAccount

  • checkAccount(mnemonicPhrase: string, message: string): Promise<Account>
  • Checks if user with provided mnemonic phrase is already registered in the system.

    Parameters

    • mnemonicPhrase: string

      Mnemonic phrase for Public/Private key pair generation for asymmetric encryption scheme.

    • message: string

      on the basis of which a signature will be created to verify the public key

    Returns Promise<Account>

    {Account} if client exist or http exception if fail.

getAccount

getNewMnemonic

  • getNewMnemonic(): Promise<string>

getPublicKeyFromMnemonic

  • getPublicKeyFromMnemonic(mnemonicPhrase: string): Promise<string>

registration

  • registration(mnemonicPhrase: string, message: string): Promise<Account>
  • Registers a new user in the system.

    Parameters

    • mnemonicPhrase: string

      Mnemonic phrase for Public/Private key pair generation for asymmetric encryption scheme.

    • message: string

      on the basis of which a signature will be created to verify the public key

    Returns Promise<Account>

    {Account} after successful registration or http exception if fail.

subscribeAccount

  • subscribeAccount(): Observable<Account>

unsubscribe

  • unsubscribe(): Promise<void>
  • Allows user to unsubscribe from BASE. Delets all his data

    Returns Promise<void>

    void if client exist or http exception if fail.

Generated using TypeDoc