public final class ConnectionKey
extends java.lang.Object
implements java.io.Serializable
Connection instance.
A composite key that consists of the providerId (e.g. "facebook") plus providerUserId (e.g. "125660").
Provides the basis for connection equals() and hashCode().| Constructor and Description |
|---|
ConnectionKey(java.lang.String providerId,
java.lang.String providerUserId)
Creates a new
ConnectionKey. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getProviderId()
The id of the provider as it is registered in the system.
|
java.lang.String |
getProviderUserId()
The id of the external provider user representing the remote end of the connection.
|
int |
hashCode() |
java.lang.String |
toString() |
public ConnectionKey(java.lang.String providerId,
java.lang.String providerUserId)
ConnectionKey.providerId - the id of the provider e.g. facebookproviderUserId - id of the provider user account e.g. '125660'public java.lang.String getProviderId()
public java.lang.String getProviderUserId()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object