Method | Description | |
---|---|---|
__clone ( ) | Disabling __clone call | |
getCredentialObject ( null $userId = null ) : |
Obtain Credential Object based on UserId provided. | |
getInstance ( array | null $config = null ) : |
Create singleton instance for this class. | |
setCredentialObject ( |
Sets credential object for users |
Method | Description | |
---|---|---|
__construct ( $config ) | Constructor initialize credential for multiple accounts specified in property file | |
initCredential ( array $config ) | Load credentials for multiple accounts, with priority given to Signature credential. |
public getCredentialObject ( null $userId = null ) : |
||
$userId | null | |
return |
public static getInstance ( array | null $config = null ) : |
||
$config | array | null | |
return |
public setCredentialObject ( |
||
$credential | ||
$userId | string | null | User Id associated with the account |
$default | boolean | If set, it would make it as a default credential for all requests |