public class CLIConfigCredentialProvider extends Object implements Provider
config.json.
Follows the Provider CQS contract:
isExpired() / retrieve() are pure reads.refresh() is the only method that mutates state. It re-reads
the CLI config, resolves the profile's mode to a Provider
instance, and publishes it.Intended to be wrapped in a CredentialProvider, which serializes
refresh through a ReadWriteLock and
guarantees the isExpired → refresh → retrieve sequence. Direct use
(without wrapping) is not a supported mode.
| Constructor and Description |
|---|
CLIConfigCredentialProvider() |
CLIConfigCredentialProvider(String profileName) |
CLIConfigCredentialProvider(String profileName,
String configPath) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExpired() |
void |
refresh() |
CredentialValue |
retrieve() |
public CLIConfigCredentialProvider()
public CLIConfigCredentialProvider(String profileName)
public void refresh()
throws ApiException
refresh in interface ProviderApiExceptionpublic CredentialValue retrieve() throws ApiException
retrieve in interface ProviderApiExceptionCopyright © 2026. All rights reserved.