net.netheos.pcsapi.credentials
Class OAuth2AppInfo

java.lang.Object
  extended by net.netheos.pcsapi.credentials.OAuth2AppInfo
All Implemented Interfaces:
AppInfo

public class OAuth2AppInfo
extends Object
implements AppInfo

This class holds application information for OAuth2 providers (web application workflow).


Constructor Summary
OAuth2AppInfo(String providerName, String appName, String appId, String appSecret, List<String> scope, String redirectUrl)
          Constructor for OAuth clients
 
Method Summary
 String getAppId()
           
 String getAppName()
          Get the application name
 String getAppSecret()
           
 String getProviderName()
          Get the storage provider name
 String getRedirectUrl()
           
 List<String> getScope()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OAuth2AppInfo

public OAuth2AppInfo(String providerName,
                     String appName,
                     String appId,
                     String appSecret,
                     List<String> scope,
                     String redirectUrl)
Constructor for OAuth clients

Parameters:
providerName - lower case name of provider
appName - Name of application, as registered on provider.
appId - If OAuth provider, application ID (may be null)
appSecret - If OAuth provider, application secret (may be null)
scope - If OAuth provider, list of permissions asked by application (may be null)
redirectUrl - If OAuth provider, application URL (for web application workflow) (may be null)
Method Detail

getAppId

public String getAppId()

getAppSecret

public String getAppSecret()

getRedirectUrl

public String getRedirectUrl()

getScope

public List<String> getScope()

getProviderName

public String getProviderName()
Description copied from interface: AppInfo
Get the storage provider name

Specified by:
getProviderName in interface AppInfo
Returns:
The provider name

getAppName

public String getAppName()
Description copied from interface: AppInfo
Get the application name

Specified by:
getAppName in interface AppInfo
Returns:
the application name

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.