public class OAuthSession extends Object implements Identifiable
OAuthService
.
It completes data in OAuthAppSettings
.
More over it contains status and basic user data when OAuth connexion has been completedModifier and Type | Class and Description |
---|---|
static class |
OAuthSession.Builder
Builder class for
OAuthSession |
Modifier and Type | Field and Description |
---|---|
static OAuthSession |
NULL
A null OAuthSession used to avoid NPE
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Token |
getAccessToken() |
Map<String,Serializable> |
getExtraData() |
String |
getId() |
String |
getName() |
UserSessionRepository |
getRepo() |
Token |
getRequestToken() |
String |
getServiceName() |
Annotation |
getServiceQualifier() |
UserProfile |
getUserProfile() |
String |
getVerifier() |
int |
hashCode() |
boolean |
isConnected() |
void |
setAccessToken(Token accessToken) |
void |
setRepo(UserSessionRepository repo)
Attach this Session the given Repository
|
void |
setRequestToken(Token requestToken) |
void |
setUserProfile(UserProfile userProfile) |
void |
setVerifier(String verifier) |
String |
toString() |
public static OAuthSession NULL
public String getId()
getId
in interface Identifiable
public UserSessionRepository getRepo()
public void setRepo(UserSessionRepository repo)
repo
- the repository that will contain this sessionpublic Token getRequestToken()
public void setRequestToken(Token requestToken)
requestToken
- the requestToken to setpublic Token getAccessToken()
public void setAccessToken(Token accessToken)
accessToken
- the accessToken to setpublic String getVerifier()
public void setVerifier(String verifier)
verifier
- the verifier to setpublic UserProfile getUserProfile()
public void setUserProfile(UserProfile userProfile)
userProfile
- to setpublic Annotation getServiceQualifier()
public boolean isConnected()
public String getName()
public String getServiceName()
public Map<String,Serializable> getExtraData()
Copyright © 2012-2013. All Rights Reserved.