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