Class 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
    • Field Summary

      • Fields inherited from class org.pac4j.core.config.AbstractConfigFilter

        logger
    • 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)  
      • Methods inherited from class org.pac4j.core.config.AbstractConfigFilter

        doFilter, getBooleanParam, getConfig, getSharedConfig, getStringParam, setConfig, setSharedConfig
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Saml2MetadataFilter

        public Saml2MetadataFilter()
    • Method Detail

      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Overrides:
        init in class org.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 class org.pac4j.core.config.AbstractConfigFilter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
        Overrides:
        destroy in class org.pac4j.core.config.AbstractConfigFilter
      • getClientName

        public java.lang.String getClientName()
      • setClientName

        public void setClientName​(java.lang.String clientName)