public class LogoutHandler extends Object implements org.sourceid.websso.servlet.adapter.Handler
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTENT
The default used if no explicit value is set for defaultContent
|
Constructor and Description |
---|
LogoutHandler(IdpAuthenticationAdapter adapter,
String path)
Creates and registers a new LogoutHandler
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultContent()
Returns the default HTML content to render after logout if redirectDestination and templateName are not set.
|
String |
getRedirectDestination()
Returns the location that the user will be redirected to after the logout.
|
String |
getTemplateName()
Returns the name of the template to render after the logout.
|
void |
handle(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Implementation of the Handler interface called by the PF runtime.
|
void |
setDefaultContent(String defaultContent)
Sets the default HTML content to render after logout if redirectDestination and templateName are not set.
|
void |
setRedirectDestination(String redirectDestination)
Sets the location that the user will be redirected to after the logout.
|
void |
setTemplateName(String templateName)
Sets the name of the template to render after the logout.
|
public static final String DEFAULT_CONTENT
public LogoutHandler(IdpAuthenticationAdapter adapter, String path)
adapter
- the IdP adapter that will have its logout method calledpath
- the sub path that the handler will be registered at. Must to start with a "/". The actual path will be [pf-home]/ext{path}public String getRedirectDestination()
public void setRedirectDestination(String redirectDestination)
redirectDestination
- the URL or relative path that the user will be redirected topublic String getDefaultContent()
public void setDefaultContent(String defaultContent)
defaultContent
- HTML contentpublic String getTemplateName()
public void setTemplateName(String templateName)
templateName
- the name of the HTML template filepublic void handle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
handle
in interface org.sourceid.websso.servlet.adapter.Handler
javax.servlet.ServletException
IOException
Copyright 2019 Ping Identity Corp. All rights reserved.