public abstract class AbstractAccountChooserValve
extends org.apache.catalina.valves.ValveBase
implements org.apache.catalina.Lifecycle
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractAccountChooserValve.AccountIDPMapProvider
Interface for obtaining the Identity Provider Mapping
|
Modifier and Type | Field and Description |
---|---|
static String |
ACCOUNT_CHOOSER_COOKIE_NAME |
static String |
ACCOUNT_PARAMETER |
protected String |
accountChooserPage |
protected AbstractAccountChooserValve.AccountIDPMapProvider |
accountIDPMapProvider |
static String |
AUTHENTICATING |
protected int |
cookieExpiry
Sets the account chooser cookie expiry.
|
protected String |
domainName
Domain Name to be used in the cookie that is sent out
|
protected ConcurrentHashMap<String,String> |
idpMap |
protected org.apache.catalina.util.LifecycleSupport |
lifecycle
The lifecycle event support for this component.
|
protected static PicketLinkLogger |
logger |
static String |
STATE |
container, controller, domain, info, mserver, next, oname
AFTER_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 |
---|
AbstractAccountChooserValve() |
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(org.apache.catalina.LifecycleListener listener) |
protected String |
cookieValue(org.apache.catalina.connector.Request request) |
org.apache.catalina.LifecycleListener[] |
findLifecycleListeners() |
void |
invoke(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response) |
protected void |
proceedToAuthentication(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
String cookieValue)
Proceed to the Service Provider Authentication Mechanism
|
protected void |
redirectToChosenPage(String page,
org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response)
Redirect user to a page
|
void |
removeLifecycleListener(org.apache.catalina.LifecycleListener listener) |
protected abstract boolean |
restoreRequest(org.apache.catalina.connector.Request request,
org.apache.catalina.Session session)
Restore the original request from information stored in our session.
|
protected abstract void |
saveRequest(org.apache.catalina.connector.Request request,
org.apache.catalina.Session session)
Save the original request information into our session.
|
void |
setAccountChooserPage(String pageName)
Set the name of the html or jsp page that has the accounts for the
user to choose.
|
void |
setAccountIDPMapProvider(String idpMapProviderName)
Set the fully qualified name of the implementation of
AbstractAccountChooserValve.AccountIDPMapProvider
Default: PropertiesAccountMapProvider |
void |
setCookieExpiry(String value)
Set the cookie expiry in seconds.
|
void |
setDomainName(String domainName)
Set the domain name for the cookie to be sent to the browser
There is no default.
|
void |
start() |
void |
stop() |
backgroundProcess, createObjectName, event, getContainer, getContainerName, getController, getDomain, getInfo, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setContainer, setController, setNext, setObjectName, toString
protected static final PicketLinkLogger logger
public static final String ACCOUNT_CHOOSER_COOKIE_NAME
public static final String ACCOUNT_PARAMETER
public static final String AUTHENTICATING
public static final String STATE
protected String domainName
protected String accountChooserPage
protected ConcurrentHashMap<String,String> idpMap
protected AbstractAccountChooserValve.AccountIDPMapProvider accountIDPMapProvider
protected int cookieExpiry
protected org.apache.catalina.util.LifecycleSupport lifecycle
public void start() throws org.apache.catalina.LifecycleException
start
in interface org.apache.catalina.Lifecycle
org.apache.catalina.LifecycleException
public void stop() throws org.apache.catalina.LifecycleException
stop
in interface org.apache.catalina.Lifecycle
org.apache.catalina.LifecycleException
public void removeLifecycleListener(org.apache.catalina.LifecycleListener listener)
removeLifecycleListener
in interface org.apache.catalina.Lifecycle
public org.apache.catalina.LifecycleListener[] findLifecycleListeners()
findLifecycleListeners
in interface org.apache.catalina.Lifecycle
public void addLifecycleListener(org.apache.catalina.LifecycleListener listener)
addLifecycleListener
in interface org.apache.catalina.Lifecycle
public void setDomainName(String domainName)
domainName
- public void setCookieExpiry(String value)
value
- public void setAccountIDPMapProvider(String idpMapProviderName)
AbstractAccountChooserValve.AccountIDPMapProvider
Default: PropertiesAccountMapProvider
idpMapProviderName
- public void setAccountChooserPage(String pageName)
pageName
- public void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException, ServletException
invoke
in interface org.apache.catalina.Valve
invoke
in class org.apache.catalina.valves.ValveBase
IOException
ServletException
protected void proceedToAuthentication(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response, String cookieValue) throws IOException, ServletException
request
- response
- cookieValue
- IOException
ServletException
protected void redirectToChosenPage(String page, org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws ServletException, IOException
page
- request
- response
- ServletException
IOException
protected String cookieValue(org.apache.catalina.connector.Request request)
protected abstract void saveRequest(org.apache.catalina.connector.Request request, org.apache.catalina.Session session) throws IOException
request
- The request to be savedsession
- The session to contain the saved informationIOException
protected abstract boolean restoreRequest(org.apache.catalina.connector.Request request, org.apache.catalina.Session session) throws IOException
false
; otherwise, return true
.request
- The request to be restoredsession
- The session containing the saved informationIOException
Copyright © 2018 JBoss by Red Hat. All rights reserved.