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 Logger |
log |
protected OpenIDProcessor |
processor |
protected List<String> |
roles |
protected boolean |
saveRestoreRequest |
protected boolean |
trace |
characterEncoding, info, landingPagealwaysUseSession, AUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, lifecycle, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, sso, started, unregisterSsoOnLogoutcontainer, controller, domain, mserver, next, onameAFTER_LOAD_ON_STARTUP_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, AFTER_UNLOAD_EVENT, BEFORE_LOAD_ON_STARTUP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, BEFORE_UNLOAD_EVENT, DESTROY_EVENT, INIT_EVENT, LOAD_ON_STARTUP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
OpenIDConsumerAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(HttpServletRequest request,
HttpServletResponse response,
org.apache.catalina.deploy.LoginConfig loginConfig) |
boolean |
authenticate(org.apache.catalina.connector.Request request,
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, getLandingPage, matchRequest, restoreRequest, savedRequestURL, saveRequest, setCharacterEncoding, setLandingPageaddLifecycleListener, associate, authenticate, findLifecycleListeners, generateSessionId, getCache, getContainer, getDisableProxyCaching, getSecurePagesWithPragma, invoke, isChangeSessionIdOnAuthentication, isUnregisterSsoOnLogout, login, logout, reauthenticateFromSSO, register, removeLifecycleListener, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setSecurePagesWithPragma, setUnregisterSsoOnLogout, start, stop, unregisterprotected static 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(HttpServletRequest request, HttpServletResponse response, org.apache.catalina.deploy.LoginConfig loginConfig) throws IOException
IOExceptionpublic boolean authenticate(org.apache.catalina.connector.Request request,
HttpServletResponse response,
org.apache.catalina.deploy.LoginConfig config)
throws IOException
authenticate in class org.apache.catalina.authenticator.FormAuthenticatorrequest - 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
IOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.