|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
public class SslFilter
Filter which requires a request to be over SSL.
Theport property defaults to 443 and also additionally guarantees that the
request scheme is always 'https' (except for port 80, which retains the 'http' scheme).
Example config:
[urls] /secure/path/** = ssl
| Field Summary | |
|---|---|
static int |
DEFAULT_HTTPS_PORT
|
static String |
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 | |
|---|---|
SslFilter()
|
|
| Method Summary | |
|---|---|
protected String |
getScheme(String requestScheme,
int port)
|
| Methods inherited from class org.apache.shiro.web.filter.authz.PortFilter |
|---|
getPort, isAccessAllowed, 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, pathsMatch, pathsMatch, preHandle, processPathConfig |
| Methods inherited from class org.apache.shiro.web.servlet.AdviceFilter |
|---|
afterCompletion, cleanup, doFilterInternal, executeChain, postHandle |
| Methods inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter |
|---|
doFilter, getAlreadyFilteredAttributeName, 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 |
| Field Detail |
|---|
public static final int DEFAULT_HTTPS_PORT
public static final String HTTPS_SCHEME
| Constructor Detail |
|---|
public SslFilter()
| Method Detail |
|---|
protected String getScheme(String requestScheme,
int port)
getScheme in class PortFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||