net.netheos.pcsapi.oauth
Class OAuth2Bootstrapper
java.lang.Object
net.netheos.pcsapi.oauth.OAuth2Bootstrapper
public class OAuth2Bootstrapper
- extends Object
Utility class to retrieve initial token and populate a UserCredentialsRepository.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuth2Bootstrapper
public OAuth2Bootstrapper(IStorageProvider storageProvider)
getAuthorizeBrowserUrl
public URI getAuthorizeBrowserUrl()
- Builds the authorize URI that must be loaded in a browser to allow the application to use the API
- Returns:
- The authorize URI
getUserCredentials
public void getUserCredentials(String codeOrUrl)
throws IOException
- Gets users Credentials
- Parameters:
codeOrUrl - code or redirect URL provided by the browser
- Throws:
IOException
Copyright © 2014. All Rights Reserved.