public class Credentials extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Credentials.TokenHelper
TokenHelper will be used to parse the login request response in order to
get the Authorization Token.
|
| Constructor and Description |
|---|
Credentials() |
| Modifier and Type | Method and Description |
|---|---|
static Credentials |
Password(String email,
String password)
Authenticating with email and password.
|
static Credentials |
Token(String accessToken)
Token is used for Authenticating with an access token.
|
boolean |
usesToken()
usesToken is used to determine which authentication method is used.
|
public static Credentials Token(String accessToken)
accessToken - obtained from CoScale user account.public static Credentials Password(String email, String password)
email - CoScale user email address.password - CoScale user password.public boolean usesToken()
Copyright © 2016. All rights reserved.