net.netheos.pcsapi.credentials
Class Credentials

java.lang.Object
  extended by net.netheos.pcsapi.credentials.Credentials
Direct Known Subclasses:
OAuth2Credentials, PasswordCredentials

public abstract class Credentials
extends Object

This class contains credentials token and user/password


Constructor Summary
Credentials()
           
 
Method Summary
static Credentials createFromJson(String json)
          Create a Credential object from a JSON value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Credentials

public Credentials()
Method Detail

createFromJson

public static Credentials createFromJson(String json)
Create a Credential object from a JSON value. It detects automaticaly which credential is defined (OAuth or password)

Parameters:
json - The JSON to parse
Returns:
The credentials object


Copyright © 2014. All Rights Reserved.