public class OpenIDProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_TYPE |
static ThreadLocal<Principal> |
cachedPrincipal |
static ThreadLocal<List<String>> |
cachedRoles |
static String |
EMPTY_PASSWORD |
protected List<String> |
roles |
| Constructor and Description |
|---|
OpenIDProcessor(String theReturnURL,
String requiredAttributes,
String optionalAttributes) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(List<String> requiredRoles)
Initialize the processor
|
boolean |
isInitialized()
Return whether the processor has initialized
|
boolean |
prepareAndSendAuthRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Principal |
processIncomingAuthResult(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static final String AUTH_TYPE
public static ThreadLocal<Principal> cachedPrincipal
public static ThreadLocal<List<String>> cachedRoles
public static String EMPTY_PASSWORD
public boolean isInitialized()
public void initialize(List<String> requiredRoles) throws org.openid4java.message.MessageException, org.openid4java.consumer.ConsumerException
requiredRoles - org.openid4java.message.MessageExceptionorg.openid4java.consumer.ConsumerExceptionpublic boolean prepareAndSendAuthRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic Principal processIncomingAuthResult(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionCopyright © 2014 JBoss Inc.. All Rights Reserved.