Class: Bosh::Cli::Client::Uaa::TokenProvider
- Defined in:
- lib/cli/client/uaa/token_provider.rb
Instance Method Summary collapse
-
#initialize(auth_info, config, token_decoder, target) ⇒ TokenProvider
constructor
A new instance of TokenProvider.
- #refresh ⇒ Object
- #token ⇒ Object
- #username ⇒ Object
Constructor Details
#initialize(auth_info, config, token_decoder, target) ⇒ TokenProvider
Returns a new instance of TokenProvider.
8 9 10 11 12 13 |
# File 'lib/cli/client/uaa/token_provider.rb', line 8 def initialize(auth_info, config, token_decoder, target) @auth_info = auth_info @config = config @token_decoder = token_decoder @target = target end |
Instance Method Details
#refresh ⇒ Object
20 21 22 23 |
# File 'lib/cli/client/uaa/token_provider.rb', line 20 def refresh get_access_info(true) nil end |
#token ⇒ Object
15 16 17 18 |
# File 'lib/cli/client/uaa/token_provider.rb', line 15 def token access_info = get_access_info access_info.auth_header if access_info end |
#username ⇒ Object
25 26 27 |
# File 'lib/cli/client/uaa/token_provider.rb', line 25 def username get_access_info.username end |