Class: AWS.SharedJSONFileCredentials
- Inherits:
-
AWS.Credentials
- Object
- AWS.Credentials
- AWS.SharedJSONFileCredentials
- Defined in:
- lib/credentials/shared_json_file_credentials.js
Overview
This feature is not supported in the browser environment of the SDK.
Represents credentials loaded from shared credentials file (defaulting to ~/.bluemix/cos_credentials).
Using the shared credentials file
This provider is checked by default in the Node.js environment. To use the credentials file provider, simply add your bluemix credentials in JSON format to the ~/.bluemix/cos_credentials file in the following format:
{ "apikey": "foo", "cos_hmac_keys": { "access_key_id": "bar", "secret_access_key": "baz" }, ... "resource_instance_id": "bang" }
Constructor Summary collapse
-
new AWS.SharedJSONFileCredentials(options) ⇒ void
constructor
Creates a new SharedJSONFileCredentials object.
Property Summary
Properties inherited from AWS.Credentials
expired, expireTime, accessKeyId, secretAccessKey, sessionToken, expiryWindow
Method Summary collapse
-
refresh(callback) ⇒ void
Loads the credentials from the shared credentials file.
Methods inherited from AWS.Credentials
needsRefresh, get, getPromise, refreshPromise
Constructor Details
new AWS.SharedJSONFileCredentials(options) ⇒ void
Creates a new SharedJSONFileCredentials object.
Method Details
refresh(callback) ⇒ void
Loads the credentials from the shared credentials file