Class SampleappShiroFilter
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.AbstractShiroFilter
no.priv.bang.authservice.web.security.shirofilter.AuthserviceShiroFilterBase
no.priv.bang.sampleapp.web.security.SampleappShiroFilter
- All Implemented Interfaces:
javax.servlet.Filter,org.apache.shiro.lang.util.Nameable
public class SampleappShiroFilter
extends no.priv.bang.authservice.web.security.shirofilter.AuthserviceShiroFilterBase
This is an OSGi DS component that provides a
Filter service. This filter service will
be put in front of the servlets in the "/sampleapp" webcontext, and
will handle authentication and verify authorization to the servlet paths.-
Field Summary
FieldsFields inherited from class no.priv.bang.authservice.web.security.shirofilter.AuthserviceShiroFilterBase
cipherKeyService, realm, session, shiroConfigServiceFields inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter
ALREADY_FILTERED_SUFFIXFields inherited from class org.apache.shiro.web.servlet.AbstractFilter
filterConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidsetCipherKeyService(no.priv.bang.authservice.definitions.CipherKeyService cipherKeyService) voidsetRealm(org.apache.shiro.realm.Realm realm) voidsetSession(org.apache.shiro.session.mgt.eis.SessionDAO session) voidsetShiroConfigService(no.priv.bang.authservice.definitions.AuthserviceShiroConfigService shiroConfigService) Methods inherited from class no.priv.bang.authservice.web.security.shirofilter.AuthserviceShiroFilterBase
createShiroIniWebEnvironment, createShiroWebEnvironmentFromIniFileMethods inherited from class org.apache.shiro.web.servlet.AbstractShiroFilter
createDefaultSecurityManager, createSubject, doFilterInternal, executeChain, getExecutionChain, getFilterChainResolver, getSecurityManager, init, isHttpSessions, isStaticSecurityManagerEnabled, onFilterConfigSet, prepareServletRequest, prepareServletResponse, setFilterChainResolver, setSecurityManager, setShiroFilterConfiguration, setStaticSecurityManagerEnabled, updateSessionLastAccessTime, wrapServletRequest, wrapServletResponseMethods inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter
doFilter, getAlreadyFilteredAttributeName, isEnabled, isEnabled, isFilterOncePerRequest, setEnabled, setFilterOncePerRequest, shouldNotFilterMethods inherited from class org.apache.shiro.web.servlet.NameableFilter
getName, setName, toStringBuilderMethods inherited from class org.apache.shiro.web.servlet.AbstractFilter
destroy, getFilterConfig, getInitParam, init, setFilterConfigMethods inherited from class org.apache.shiro.web.servlet.ServletContextSupport
getContextAttribute, getContextInitParam, getServletContext, removeContextAttribute, setContextAttribute, setServletContext, toString
-
Field Details
-
INI_FILE
private static final org.apache.shiro.config.Ini INI_FILE
-
-
Constructor Details
-
SampleappShiroFilter
public SampleappShiroFilter()
-
-
Method Details
-
setRealm
public void setRealm(org.apache.shiro.realm.Realm realm) -
setSession
public void setSession(org.apache.shiro.session.mgt.eis.SessionDAO session) -
setCipherKeyService
public void setCipherKeyService(no.priv.bang.authservice.definitions.CipherKeyService cipherKeyService) -
setShiroConfigService
public void setShiroConfigService(no.priv.bang.authservice.definitions.AuthserviceShiroConfigService shiroConfigService) -
activate
public void activate()
-