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.
32 33 34 |
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 32 def initialize(aws_credentials) @aws_credentials = aws_credentials end |
Instance Method Details
#password ⇒ Object
40 41 42 |
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 40 def password @aws_credentials.secret_access_key end |
#security_token ⇒ Object
44 45 46 |
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 44 def security_token @aws_credentials.session_token end |
#username ⇒ Object
36 37 38 |
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 36 def username @aws_credentials.access_key_id end |