Class Fog::Brightbox::OAuth2::CredentialSet
In: lib/fog/brightbox/oauth2.rb
Parent: Object

Encapsulates credentials required to request access tokens from the Brightbox authorisation servers

@todo Interface to update certain credentials (after password change)

Methods

Attributes

access_token  [R] 
client_id  [R] 
client_secret  [R] 
password  [R] 
refresh_token  [R] 
username  [R] 

Public Class methods

@param [String] client_id @param [String] client_secret @param [Hash] options @option options [String] :username @option options [String] :password

Public Instance methods

Is an access token available for these credentials?

Based on available credentials returns the best strategy

@todo Add a means to dictate which should or shouldn‘t be used

Is a refresh token available for these credentials?

Updates the credentials with newer tokens

Returns true if user details are available @return [Boolean]

[Validate]