Class: HTTPX::Plugins::AwsSdkAuthentication::Credentials

Inherits:
Object
  • Object
show all
Defined in:
lib/httpx/plugins/aws_sdk_authentication.rb

Overview

encapsulates access to an AWS SDK credentials store.

Instance Method Summary collapse

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

#passwordObject



38
39
40
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 38

def password
  @aws_credentials.secret_access_key
end

#security_tokenObject



42
43
44
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 42

def security_token
  @aws_credentials.session_token
end

#usernameObject



34
35
36
# File 'lib/httpx/plugins/aws_sdk_authentication.rb', line 34

def username
  @aws_credentials.access_key_id
end