IniFileProvider
in package
implements
CredentialProvider
uses
DateFromResult
FinalYes
Provides Credentials from standard AWS ini file.
Tags
Table of Contents
Interfaces
- CredentialProvider
- Interface for providing Credential.
Properties
Methods
- __construct() : mixed
- getCredentials() : Credentials|null
- Return a Credential when possible. Return null otherwise.
- getCredentialsFromLegacySso() : Credentials|null
- getCredentialsFromProfile() : Credentials|null
- getCredentialsFromRole() : Credentials|null
Properties
$httpClient
private
HttpClientInterface|null
$httpClient
$iniFileLoader
private
IniFileLoader
$iniFileLoader
$logger
private
LoggerInterface
$logger
Methods
__construct()
public
__construct([LoggerInterface|null $logger = null ][, IniFileLoader|null $iniFileLoader = null ][, HttpClientInterface|null $httpClient = null ]) : mixed
Parameters
- $logger : LoggerInterface|null = null
- $iniFileLoader : IniFileLoader|null = null
- $httpClient : HttpClientInterface|null = null
getCredentials()
Return a Credential when possible. Return null otherwise.
public
getCredentials(Configuration $configuration) : Credentials|null
Parameters
- $configuration : Configuration
Return values
Credentials|nullgetCredentialsFromLegacySso()
private
getCredentialsFromLegacySso(array<string, string> $profileData, string $profile) : Credentials|null
Parameters
- $profileData : array<string, string>
- $profile : string
Return values
Credentials|nullgetCredentialsFromProfile()
private
getCredentialsFromProfile(array<string, array<string, string>> $profilesData, string $profile[, array<string, bool> $circularCollector = [] ]) : Credentials|null
Parameters
- $profilesData : array<string, array<string, string>>
- $profile : string
- $circularCollector : array<string, bool> = []
Return values
Credentials|nullgetCredentialsFromRole()
private
getCredentialsFromRole(array<string, array<string, string>> $profilesData, array<string, string> $profileData, string $profile[, array<string, bool> $circularCollector = [] ]) : Credentials|null
Parameters
- $profilesData : array<string, array<string, string>>
- $profileData : array<string, string>
- $profile : string
- $circularCollector : array<string, bool> = []