Class AuthserviceShiroFilter

  • All Implemented Interfaces:
    javax.servlet.Filter, org.apache.shiro.util.Nameable

    public class AuthserviceShiroFilter
    extends org.apache.shiro.web.servlet.AbstractShiroFilter
    This class will show ups a Filter OSGi service, and will be picked up by the pax web whiteboard. The filter maps URLs in the webapp to users and roles.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.apache.shiro.config.Ini INI_FILE  
      private org.apache.shiro.realm.Realm realm  
      private org.apache.shiro.session.mgt.eis.SessionDAO session  
      • Fields inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter

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

        filterConfig
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()  
      void setRealm​(org.apache.shiro.realm.Realm realm)  
      void setSession​(org.apache.shiro.session.mgt.eis.SessionDAO session)  
      • Methods inherited from class org.apache.shiro.web.servlet.AbstractShiroFilter

        createDefaultSecurityManager, createSubject, doFilterInternal, executeChain, getExecutionChain, getFilterChainResolver, getSecurityManager, init, isHttpSessions, isStaticSecurityManagerEnabled, onFilterConfigSet, prepareServletRequest, prepareServletResponse, setFilterChainResolver, setSecurityManager, setStaticSecurityManagerEnabled, updateSessionLastAccessTime, wrapServletRequest, wrapServletResponse
      • Methods inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter

        doFilter, getAlreadyFilteredAttributeName, isEnabled, isEnabled, setEnabled, 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, setFilterConfig
      • Methods inherited from class org.apache.shiro.web.servlet.ServletContextSupport

        getContextAttribute, getContextInitParam, getServletContext, removeContextAttribute, setContextAttribute, setServletContext, toString
    • Field Detail

      • realm

        private org.apache.shiro.realm.Realm realm
      • session

        private org.apache.shiro.session.mgt.eis.SessionDAO session
      • INI_FILE

        private static final org.apache.shiro.config.Ini INI_FILE
    • Constructor Detail

      • AuthserviceShiroFilter

        public AuthserviceShiroFilter()
    • Method Detail

      • setRealm

        public void setRealm​(org.apache.shiro.realm.Realm realm)
      • setSession

        public void setSession​(org.apache.shiro.session.mgt.eis.SessionDAO session)
      • activate

        public void activate()