Class: Bosh::Cli::Client::UaaCredentials
- Defined in:
- lib/cli/client/credentials.rb
Instance Method Summary collapse
- #authorization_header ⇒ Object
-
#initialize(token_provider) ⇒ UaaCredentials
constructor
A new instance of UaaCredentials.
- #refresh ⇒ Object
- #username ⇒ Object
Constructor Details
#initialize(token_provider) ⇒ UaaCredentials
Returns a new instance of UaaCredentials.
5 6 7 |
# File 'lib/cli/client/credentials.rb', line 5 def initialize(token_provider) @token_provider = token_provider end |
Instance Method Details
#authorization_header ⇒ Object
13 14 15 |
# File 'lib/cli/client/credentials.rb', line 13 def @token_provider.token end |
#refresh ⇒ Object
17 18 19 20 |
# File 'lib/cli/client/credentials.rb', line 17 def refresh @token_provider.refresh true end |
#username ⇒ Object
9 10 11 |
# File 'lib/cli/client/credentials.rb', line 9 def username @token_provider.username end |