public final class Identity
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Identity |
createCustomIdentity(java.lang.String customProviderName,
java.lang.String userId,
java.lang.String accessToken)
Create custom identity.
|
static Identity |
createFacebookIdentity(java.lang.String accessToken)
Creates a Facebook identity with specified access token.
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAccessToken() |
java.lang.String |
getProviderId() |
java.lang.String |
getProviderUserId() |
int |
hashCode() |
java.lang.String |
toString() |
public static Identity createFacebookIdentity(java.lang.String accessToken)
accessToken
- Token of Facebook user returned from FB SDK.Identity
for Facebook user with specified access token.public static Identity createCustomIdentity(java.lang.String customProviderName, java.lang.String userId, java.lang.String accessToken)
customProviderName
- Your custom provider name.userId
- Unique user identifier for your custom provider.accessToken
- Password of the user for your custom provider.
It's a string, provided by the developer and it will be
required by the GetSocial SDK to validate any future
intent to add this same identity to another user.Identity
for your custom provider.public java.lang.String getProviderUserId()
public java.lang.String getAccessToken()
public java.lang.String getProviderId()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
(c) Copyright GetSocial BV, 2020. All Rights Reserved.