public class OpenIDConsumerAuthenticator
extends org.apache.catalina.authenticator.FormAuthenticator
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<Principal> |
cachedPrincipal |
static ThreadLocal<List<String>> |
cachedRoles |
static String |
EMPTY_PASSWORD |
protected static org.apache.log4j.Logger |
log |
protected OpenIDProcessor |
processor |
protected List<String> |
roles |
protected boolean |
saveRestoreRequest |
protected boolean |
trace |
characterEncoding, infoalgorithm, cache, context, DEFAULT_ALGORITHM, digest, disableProxyCaching, entropy, lifecycle, random, randomClass, securePagesWithPragma, SESSION_ID_BYTES, sm, sso, started| Constructor and Description |
|---|
OpenIDConsumerAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.catalina.deploy.LoginConfig loginConfig) |
boolean |
authenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response,
org.apache.catalina.deploy.LoginConfig config)
Authenticate the request
|
boolean |
authenticate(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.deploy.LoginConfig loginConfig) |
protected void |
registerWithAuthenticatorBase(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
Principal principal,
String userName) |
void |
setOptionalAttributes(String optionalAttributes) |
void |
setRequiredAttributes(String requiredAttributes) |
void |
setReturnURL(String returnURL) |
void |
setRoleString(String roleStr)
A comma separated string that represents the roles the web app needs to pass authorization
|
void |
setSaveRestoreRequest(boolean saveRestoreRequest) |
forwardToErrorPage, forwardToLoginPage, getCharacterEncoding, getInfo, matchRequest, restoreRequest, savedRequestURL, saveRequest, setCharacterEncodingaddLifecycleListener, associate, findLifecycleListeners, generateSessionId, getAlgorithm, getCache, getContainer, getDigest, getDisableProxyCaching, getEntropy, getRandom, getRandomClass, getSecurePagesWithPragma, invoke, reauthenticateFromSSO, register, removeLifecycleListener, setAlgorithm, setCache, setContainer, setDisableProxyCaching, setEntropy, setRandomClass, setSecurePagesWithPragma, start, stopprotected static org.apache.log4j.Logger log
protected boolean trace
public static ThreadLocal<Principal> cachedPrincipal
public static ThreadLocal<List<String>> cachedRoles
public static String EMPTY_PASSWORD
protected boolean saveRestoreRequest
protected OpenIDProcessor processor
public void setReturnURL(String returnURL)
public void setRequiredAttributes(String requiredAttributes)
public void setOptionalAttributes(String optionalAttributes)
public void setSaveRestoreRequest(boolean saveRestoreRequest)
public void setRoleString(String roleStr)
roleStr - public boolean authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.catalina.deploy.LoginConfig loginConfig)
throws IOException
IOExceptionpublic boolean authenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response,
org.apache.catalina.deploy.LoginConfig config)
throws IOException
request - response - config - IOException{@link - RuntimeException} when the response is not of type catalina response objectpublic boolean authenticate(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.deploy.LoginConfig loginConfig)
throws IOException
authenticate in class org.apache.catalina.authenticator.FormAuthenticatorIOExceptionCopyright © 2013. All Rights Reserved.