public class FacebookProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
clientID |
protected String |
clientSecret |
protected String |
returnURL |
protected String |
scope |
protected boolean |
trace |
| Constructor and Description |
|---|
FacebookProcessor(String clientID,
String clientSecret,
String scope,
String returnURL) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
FacebookPrincipal |
getPrincipal(String accessToken) |
Set<String> |
getScopes(String accessToken) |
String |
getUserAvatarURL(String accessToken) |
boolean |
initialInteraction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String verificationState) |
void |
revokeToken(String accessToken) |
protected URL |
sendAccessTokenRequest(String authorizationCode) |
protected boolean trace
protected String clientID
protected String clientSecret
protected String scope
protected String returnURL
public boolean initialInteraction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String verificationState)
throws IOException
IOExceptionpublic String getAccessToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws OAuthException
OAuthExceptionprotected URL sendAccessTokenRequest(String authorizationCode) throws IOException
IOExceptionpublic FacebookPrincipal getPrincipal(String accessToken)
public void revokeToken(String accessToken)
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.