Class SslFilter

java.lang.Object
org.apache.shiro.web.servlet.ServletContextSupport
org.apache.shiro.web.servlet.AbstractFilter
org.apache.shiro.web.servlet.NameableFilter
org.apache.shiro.web.servlet.OncePerRequestFilter
org.apache.shiro.web.servlet.AdviceFilter
org.apache.shiro.web.filter.PathMatchingFilter
org.apache.shiro.web.filter.AccessControlFilter
org.apache.shiro.web.filter.authz.AuthorizationFilter
org.apache.shiro.web.filter.authz.PortFilter
org.apache.shiro.web.filter.authz.SslFilter
org.apache.shiro.ee.filters.SslFilter
All Implemented Interfaces:
javax.servlet.Filter, org.apache.shiro.lang.util.Nameable, org.apache.shiro.web.filter.PathConfigProcessor

public class SslFilter extends org.apache.shiro.web.filter.authz.SslFilter
Enables Shiro's SslFilter depending depending on whether in Faces production mode or not
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.shiro.web.filter.authz.SslFilter

    org.apache.shiro.web.filter.authz.SslFilter.HSTS
  • Field Summary

    Fields inherited from class org.apache.shiro.web.filter.authz.SslFilter

    DEFAULT_HTTPS_PORT, HTTPS_SCHEME

    Fields inherited from class org.apache.shiro.web.filter.authz.PortFilter

    DEFAULT_HTTP_PORT, HTTP_SCHEME

    Fields inherited from class org.apache.shiro.web.filter.AccessControlFilter

    DEFAULT_LOGIN_URL, GET_METHOD, POST_METHOD

    Fields inherited from class org.apache.shiro.web.filter.PathMatchingFilter

    appliedPaths, pathMatcher

    Fields inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter

    ALREADY_FILTERED_SUFFIX

    Fields inherited from class org.apache.shiro.web.servlet.AbstractFilter

    filterConfig
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    isAccessAllowed(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, Object mappedValue)
     
    protected boolean
    isEnabled(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
     

    Methods inherited from class org.apache.shiro.web.filter.authz.SslFilter

    getHsts, getScheme, postHandle, setHsts

    Methods inherited from class org.apache.shiro.web.filter.authz.PortFilter

    getPort, onAccessDenied, setPort, toPort

    Methods inherited from class org.apache.shiro.web.filter.authz.AuthorizationFilter

    getUnauthorizedUrl, onAccessDenied, setUnauthorizedUrl

    Methods inherited from class org.apache.shiro.web.filter.AccessControlFilter

    getLoginUrl, getSubject, isLoginRequest, onPreHandle, redirectToLogin, saveRequest, saveRequestAndRedirectToLogin, setLoginUrl

    Methods inherited from class org.apache.shiro.web.filter.PathMatchingFilter

    getPathWithinApplication, isEnabled, pathsMatch, pathsMatch, preHandle, processPathConfig

    Methods inherited from class org.apache.shiro.web.servlet.AdviceFilter

    afterCompletion, cleanup, doFilterInternal, executeChain

    Methods inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter

    doFilter, getAlreadyFilteredAttributeName, isEnabled, isFilterOncePerRequest, setEnabled, setFilterOncePerRequest, shouldNotFilter

    Methods inherited from class org.apache.shiro.web.servlet.NameableFilter

    getName, setName, toStringBuilder

    Methods inherited from class org.apache.shiro.web.servlet.AbstractFilter

    destroy, getFilterConfig, getInitParam, init, onFilterConfigSet, setFilterConfig

    Methods inherited from class org.apache.shiro.web.servlet.ServletContextSupport

    getContextAttribute, getContextInitParam, getServletContext, removeContextAttribute, setContextAttribute, setServletContext, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SslFilter

      public SslFilter()
  • Method Details

    • isEnabled

      protected boolean isEnabled(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      isEnabled in class org.apache.shiro.web.servlet.OncePerRequestFilter
      Throws:
      javax.servlet.ServletException
      IOException
    • isAccessAllowed

      protected boolean isAccessAllowed(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, Object mappedValue) throws Exception
      Overrides:
      isAccessAllowed in class org.apache.shiro.web.filter.authz.SslFilter
      Throws:
      Exception