public final class Identity
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Identity |
custom(java.lang.String customProviderName,
java.lang.String userId,
java.lang.String accessToken)
Create custom identity.
|
boolean |
equals(java.lang.Object other) |
static Identity |
facebook(java.lang.String accessToken)
Creates a Facebook identity with specified access token.
|
java.lang.String |
getAccessToken() |
java.lang.String |
getProviderId() |
java.lang.String |
getProviderUserId() |
int |
hashCode() |
java.lang.String |
toString() |
static Identity |
trusted(java.lang.String customProviderName,
java.lang.String accessToken)
Create trusted identity.
|
public static Identity facebook(java.lang.String accessToken)
accessToken
- Token of Facebook user returned from FB SDK.Identity
for Facebook user with specified access token.public static Identity custom(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 static Identity trusted(java.lang.String customProviderName, java.lang.String accessToken)
customProviderName
- Your custom provider name.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, 2022. All Rights Reserved.