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 static Logger |
log |
protected List<String> |
roles |
protected boolean |
trace |
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(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response) |
Principal |
processIncomingAuthResult(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.Realm realm) |
protected static Logger log
protected boolean trace
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 MessageException, ConsumerException
requiredRoles
- MessageException
ConsumerException
public boolean prepareAndSendAuthRequest(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException
IOException
public Principal processIncomingAuthResult(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response, org.apache.catalina.Realm realm) throws IOException
IOException
Copyright © 2018 JBoss by Red Hat. All rights reserved.