public abstract class AbstractAccountChooserValve
extends ValveBase
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 LifecycleSupport |
lifecycle
The lifecycle event support for this component.
|
protected static PicketLinkLogger |
logger |
static String |
STATE |
Constructor and Description |
---|
AbstractAccountChooserValve() |
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(LifecycleListener listener) |
protected String |
cookieValue(Request request) |
LifecycleListener[] |
findLifecycleListeners() |
void |
invoke(Request request,
Response response) |
protected void |
proceedToAuthentication(Request request,
Response response,
String cookieValue)
Proceed to the Service Provider Authentication Mechanism
|
protected void |
redirectToChosenPage(String page,
Request request,
Response response)
Redirect user to a page
|
void |
removeLifecycleListener(LifecycleListener listener) |
protected abstract boolean |
restoreRequest(Request request,
Session session)
Restore the original request from information stored in our session.
|
protected abstract void |
saveRequest(Request request,
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() |
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 LifecycleSupport lifecycle
public void start() throws LifecycleException
LifecycleException
public void stop() throws LifecycleException
LifecycleException
public void removeLifecycleListener(LifecycleListener listener)
public LifecycleListener[] findLifecycleListeners()
public void addLifecycleListener(LifecycleListener listener)
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(Request request, Response response) throws IOException, ServletException
IOException
ServletException
protected void proceedToAuthentication(Request request, Response response, String cookieValue) throws IOException, ServletException
request
- response
- cookieValue
- IOException
ServletException
protected void redirectToChosenPage(String page, Request request, Response response) throws ServletException, IOException
page
- request
- response
- ServletException
IOException
protected String cookieValue(Request request)
protected abstract void saveRequest(Request request, Session session) throws IOException
request
- The request to be savedsession
- The session to contain the saved informationIOException
protected abstract boolean restoreRequest(Request request, Session session) throws IOException
false
; otherwise, return true
.request
- The request to be restoredsession
- The session containing the saved informationIOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.