net.netheos.pcsapi.credentials
Class UserCredentials<T extends Credentials>

java.lang.Object
  extended by net.netheos.pcsapi.credentials.UserCredentials<T>

public class UserCredentials<T extends Credentials>
extends Object

This class holds user_id and credentials (password or OAuth2 tokens). Credentials is a dictionary here.


Constructor Summary
UserCredentials(AppInfo appInfo, String userId, T credentials)
           
 
Method Summary
 AppInfo getAppInfo()
          Get the application informations
 T getCredentials()
          Get the user credentials
 String getUserId()
          Get the user identifier
 void setUserId(String userId)
          Set the user identifier
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserCredentials

public UserCredentials(AppInfo appInfo,
                       String userId,
                       T credentials)
Method Detail

getCredentials

public T getCredentials()
Get the user credentials

Returns:
The credentials

getAppInfo

public AppInfo getAppInfo()
Get the application informations

Returns:
The informations

getUserId

public String getUserId()
Get the user identifier

Returns:
The user identifier

setUserId

public void setUserId(String userId)
Set the user identifier

Parameters:
userId - The user identifier

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.