Package org.pac4j.saml.metadata
Class Saml2MetadataFilter
- java.lang.Object
-
- org.pac4j.core.config.AbstractConfigFilter
-
- org.pac4j.saml.metadata.Saml2MetadataFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class Saml2MetadataFilter extends org.pac4j.core.config.AbstractConfigFilter
This filter prints the SP metadata for SAML. Example shiro.ini configuration: saml2MetadataFilter = org.pac4j.saml.metadata.Saml2MetadataFilter saml2MetadataFilter.config = $config saml2MetadataFilter.clientName = SAML2Client [urls] /API/SAML2/metadata = saml2MetadataFilter- Since:
- 3.8.0
- Author:
- Graham Leggett
-
-
Constructor Summary
Constructors Constructor Description Saml2MetadataFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
java.lang.String
getClientName()
void
init(javax.servlet.FilterConfig filterConfig)
protected void
internalFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
void
setClientName(java.lang.String clientName)
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Overrides:
init
in classorg.pac4j.core.config.AbstractConfigFilter
- Throws:
javax.servlet.ServletException
-
internalFilter
protected void internalFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
- Specified by:
internalFilter
in classorg.pac4j.core.config.AbstractConfigFilter
- Throws:
java.io.IOException
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
- Overrides:
destroy
in classorg.pac4j.core.config.AbstractConfigFilter
-
getClientName
public java.lang.String getClientName()
-
setClientName
public void setClientName(java.lang.String clientName)
-
-