Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConfigFileAuthenticationDetailsProvider

Hierarchy

Implements

Constructors

constructor

  • Creates a new instance using the config file at the default location, see {@link ConfigFileReader#DEFAULT_FILE_PATH}.

    throws

    Error if the configuration file could not be loaded

    Parameters

    • Optional configurationFilePath: undefined | string
             config file path, optional
      
    • Optional profile: undefined | string
             profile to load, optional
      

    Returns ConfigFileAuthenticationDetailsProvider

Properties

Private delegate

Accessors

sessionToken

  • get sessionToken(): string | undefined
  • set sessionToken(token: undefined | string): void

Methods

createConfigFileAuth

getAuthType

  • getAuthType(): string | undefined

getDelegationToken

  • getDelegationToken(): string | undefined

getFingerprint

  • getFingerprint(): string

getKeyId

  • getKeyId(): Promise<string>

getPassphrase

  • getPassphrase(): string | null

getPrivateKey

  • getPrivateKey(): string

getProfileCredentials

getProvider

getPvtKey

  • getPvtKey(filePath: string): string

getRegion

getTenantId

  • getTenantId(): string

getUser

  • getUser(): string

retrieveRegionFromRegionId

  • retrieveRegionFromRegionId(regionId: string): Region
  • Get a region based on regionId, if corresponding region is not found from regionId, create a new region by registering regionId with Realm.OC1

    return:

    Region

    Parameters

    • regionId: string

    Returns Region

setProvider

setRegion

  • setRegion(regionId: string): void