Class: HTTPX::Plugins::AwsSdkAuthentication::Credentials
- Inherits:
-
Object
- Object
- HTTPX::Plugins::AwsSdkAuthentication::Credentials
- Defined in:
- lib/httpx/plugins/aws_sdk_authentication.rb
Overview
encapsulates access to an AWS SDK credentials store.
Instance Method Summary collapse
-
#initialize(aws_credentials) ⇒ Credentials
constructor
A new instance of Credentials.
- #password ⇒ Object
- #security_token ⇒ Object
- #username ⇒ Object
Constructor Details
#initialize(aws_credentials) ⇒ Credentials
Returns a new instance of Credentials.
30 31 32 |
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 30 def initialize(aws_credentials) @aws_credentials = aws_credentials end |
Instance Method Details
#password ⇒ Object
38 39 40 |
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 38 def password @aws_credentials.secret_access_key end |
#security_token ⇒ Object
42 43 44 |
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 42 def security_token @aws_credentials.session_token end |
#username ⇒ Object
34 35 36 |
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 34 def username @aws_credentials.access_key_id end |