public class FacebookProcessor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FacebookProcessor.STATES |
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<Principal> |
cachedPrincipal |
static ThreadLocal<List<String>> |
cachedRoles |
protected String |
clientID |
protected String |
clientSecret |
static String |
EMPTY_PASSWORD |
static String |
FB_AUTH_STATE_SESSION_ATTRIBUTE |
protected static org.apache.log4j.Logger |
log |
protected String |
returnURL |
protected List<String> |
roles |
protected String |
scope |
protected boolean |
trace |
protected FacebookUtil |
util |
| Constructor and Description |
|---|
FacebookProcessor(String clientID,
String clientSecret,
String scope,
String returnURL,
List<String> requiredRoles) |
| Modifier and Type | Method and Description |
|---|---|
Principal |
getPrincipal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Principal |
handleAuthenticationResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
handleAuthStage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
initialInteraction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected URLConnection |
sendAccessTokenRequest(String returnUrl,
String authorizationCode,
javax.servlet.http.HttpServletResponse response) |
protected void |
sendAuthorizeRequest(String returnUrl,
javax.servlet.http.HttpServletResponse response) |
void |
setRoleString(String roleStr) |
public static final String FB_AUTH_STATE_SESSION_ATTRIBUTE
protected static org.apache.log4j.Logger log
protected boolean trace
protected FacebookUtil util
public static ThreadLocal<Principal> cachedPrincipal
public static ThreadLocal<List<String>> cachedRoles
public static String EMPTY_PASSWORD
protected String clientID
protected String clientSecret
protected String scope
protected String returnURL
public void setRoleString(String roleStr)
public boolean initialInteraction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic boolean handleAuthStage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
protected void sendAuthorizeRequest(String returnUrl, javax.servlet.http.HttpServletResponse response)
public Principal getPrincipal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public Principal handleAuthenticationResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected URLConnection sendAccessTokenRequest(String returnUrl, String authorizationCode, javax.servlet.http.HttpServletResponse response)
Copyright © 2014 JBoss Inc.. All Rights Reserved.