public final class TwitterUserCore extends java.lang.Object
UserEvent for user account modifications with one of the listed UserEvent.EventType :
UserEvent.EventType.USER_AUTHORIZATION_GIVEN for new user account authorizations.UserEvent.EventType.USER_AUTHORIZATION_REVOKED for removed user account authorizations.| Modifier and Type | Method and Description |
|---|---|
static Response |
createAuthorizationRedirection(UserIdentity authenticatedUser,
java.lang.String redirectUri) |
static Response |
createLoginRedirection() |
static Response |
createRegisterRedirection() |
static TwitterCredential |
getCredential(UserIdentity userId) |
static twitter4j.auth.AccessToken |
getToken(UserIdentity authorizedUser) |
static Response |
processOAuthAuthorizeCallback(java.lang.String token,
java.lang.String verifier) |
static Response |
processOAuthLoginCallback(javax.servlet.http.HttpSession session,
java.lang.String token,
java.lang.String verifier) |
static Response |
processOAuthRegisterCallback(java.lang.String token,
java.lang.String verifier) |
static Response |
removeAuthorization(UserIdentity userIdentity) |
public static Response removeAuthorization(UserIdentity userIdentity)
userIdentity - public static Response processOAuthLoginCallback(javax.servlet.http.HttpSession session, java.lang.String token, java.lang.String verifier)
session - token - verifier - public static Response processOAuthAuthorizeCallback(java.lang.String token, java.lang.String verifier)
token - verifier - public static Response processOAuthRegisterCallback(java.lang.String token, java.lang.String verifier)
token - verifier - public static TwitterCredential getCredential(UserIdentity userId)
userId - public static twitter4j.auth.AccessToken getToken(UserIdentity authorizedUser)
authorizedUser - public static Response createLoginRedirection()
public static Response createRegisterRedirection()
public static Response createAuthorizationRedirection(UserIdentity authenticatedUser, java.lang.String redirectUri)
authenticatedUser - redirectUri - Copyright © 2015 Tampere University of Technology, Pori Department.