public class ConnectionData
extends java.lang.Object
implements java.io.Serializable
Connection.
For example, an OAuth2Connection has a null 'secret' field while an OAuth1Connection has null 'refreshToken' and 'expireTime' fields.Connection.createData(),
Serialized Form| Constructor and Description |
|---|
ConnectionData(java.lang.String providerId,
java.lang.String providerUserId,
java.lang.String displayName,
java.lang.String profileUrl,
java.lang.String imageUrl,
java.lang.String accessToken,
java.lang.String secret,
java.lang.String refreshToken,
java.lang.Long expireTime) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAccessToken()
The access token required to make authorized API calls.
|
java.lang.String |
getDisplayName()
A display name for the connection.
|
java.lang.Long |
getExpireTime()
The time the connection expires.
|
java.lang.String |
getImageUrl()
An image visualizing the connection.
|
java.lang.String |
getProfileUrl()
A link to the provider's user profile page.
|
java.lang.String |
getProviderId()
The id of the provider the connection is associated with.
|
java.lang.String |
getProviderUserId()
The id of the provider user this connection is connected to.
|
java.lang.String |
getRefreshToken()
A token use to renew this connection.
|
java.lang.String |
getSecret()
The secret token needed to make authorized API calls.
|
public ConnectionData(java.lang.String providerId,
java.lang.String providerUserId,
java.lang.String displayName,
java.lang.String profileUrl,
java.lang.String imageUrl,
java.lang.String accessToken,
java.lang.String secret,
java.lang.String refreshToken,
java.lang.Long expireTime)
public java.lang.String getProviderId()
public java.lang.String getProviderUserId()
public java.lang.String getDisplayName()
public java.lang.String getProfileUrl()
public java.lang.String getImageUrl()
public java.lang.String getAccessToken()
public java.lang.String getSecret()
public java.lang.String getRefreshToken()
public java.lang.Long getExpireTime()