public class LoginInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
LoginInfo.LoginInfoBuilder |
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
LoginInfo(Parcel in) |
|
LoginInfo(java.lang.String account,
java.lang.String token)
Constructor
|
|
LoginInfo(java.lang.String account,
java.lang.String token,
java.lang.String appKey)
Constructor
|
|
LoginInfo(java.lang.String account,
java.lang.String token,
java.lang.String appKey,
int customClientType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAccount()
Get the user account
|
java.lang.String |
getAppKey()
Get the App Key of the current project
|
int |
getAuthType()
SDK authentication type
0: the original verification method using loginToken.
|
int |
getCustomClientType()
The custom client type.
|
java.lang.String |
getLoginExt()
Custom field for login
If the value of authType is 2, the content of this field is used to get the third-party authentication.
|
java.lang.String |
getToken()
Get the token
|
int |
hashCode() |
java.lang.String |
toString() |
boolean |
valid()
Check the validity of the user information used for login.
|
void |
writeToParcel(Parcel dest,
int flags) |
public LoginInfo(java.lang.String account, java.lang.String token)
account
- User accounttoken
- The token for loginpublic LoginInfo(java.lang.String account, java.lang.String token, java.lang.String appKey)
account
- User accounttoken
- The token for loginappKey
- The App Key for the project (optional)
Note: One App Key is used for one project. If the appKey parameter is unspecified, the appKey configured in SDKOptions is used. If no App Key is configured in SDKOptions. Then, the App Key in AndroidManifest will be applied.public LoginInfo(java.lang.String account, java.lang.String token, java.lang.String appKey, int customClientType)
account
- User accounttoken
- The token for loginappKey
- The App Key for the project (optional)
Note: One App Key is used for one project. If the appKey parameter is unspecified, the appKey configured in SDKOptions is used. If no App Key is configured in SDKOptions. Then, the App Key in AndroidManifest will be applied.customClientType
- The custom client type. If the value is less than or equal to 0, no custom client types are defined.protected LoginInfo(Parcel in)
public java.lang.String getAccount()
public java.lang.String getToken()
public int getAuthType()
public java.lang.String getLoginExt()
public java.lang.String getAppKey()
public int getCustomClientType()
public boolean valid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
public void writeToParcel(Parcel dest, int flags)