Method | Description | |
---|---|---|
AddOrUpdateCredentials ( string profileName, string accessKey, string secretAccessKey ) : void |
Add credentials for the profile given. If credentials for the profile already exist, update them. Changes are not written to disk until the Persist() method is called.
|
|
AddOrUpdateCredentials ( string profileName, string accessKey, string secretAccessKey, string token ) : void |
Add credentials for the profile given. If credentials for the profile already exist, update them. Changes are not written to disk until the Persist() method is called.
|
|
DeleteProfile ( string profileName ) : void |
Deletes the section with the given ProfileName from the SharedCredentialsFile, if one exists. Changes are not written to disk until the Persist() method is called.
|
|
GetCredentials ( string profileName ) : ImmutableCredentials |
Get credentials for the given profile.
|
|
ListProfileNames ( ) : List |
||
Persist ( ) : void |
Persist any changes to disk.
|
|
SharedCredentialsFile ( string filePath ) : Amazon.Runtime.Internal.Util |
Construct a new SharedCredentialsFile.
|
|
TryGetCredentials ( string profileName, ImmutableCredentials &credentials ) : bool |
Return the credentials for the profile if valid credentials can be found.
|
Method | Description | |
---|---|---|
GetCredentials ( string profileName, bool throwIfInvalid ) : ImmutableCredentials |
public AddOrUpdateCredentials ( string profileName, string accessKey, string secretAccessKey ) : void | ||
profileName | string | name of profile |
accessKey | string | access key for the credentials |
secretAccessKey | string | secret access key for the credentials |
return | void |
public AddOrUpdateCredentials ( string profileName, string accessKey, string secretAccessKey, string token ) : void | ||
profileName | string | name of profile |
accessKey | string | access key for the credentials |
secretAccessKey | string | secret access key for the credentials |
token | string | token for the credentials |
return | void |
public DeleteProfile ( string profileName ) : void | ||
profileName | string | ProfileName of section to delete |
return | void |
public GetCredentials ( string profileName ) : ImmutableCredentials | ||
profileName | string | name of profile to find credentials for |
return | ImmutableCredentials |
public SharedCredentialsFile ( string filePath ) : Amazon.Runtime.Internal.Util | ||
filePath | string | path of the shared credentials file |
return | Amazon.Runtime.Internal.Util |
public TryGetCredentials ( string profileName, ImmutableCredentials &credentials ) : bool | ||
profileName | string | name of profile to find credentials for |
credentials | ImmutableCredentials | the credentials for the profile |
return | bool |