public class SpringSecurityToJaasFilter
extends org.springframework.web.filter.GenericFilterBean
| Constructor and Description |
|---|
SpringSecurityToJaasFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
protected Optional<Subject> |
obtainSubject()
Obtains the
Subject to run as or null if no Subject is
available. |
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionprotected Optional<Subject> obtainSubject()
Subject to run as or null if no Subject is
available.
The default implementation attempts to obtain the Subject from the
SecurityContext's Authentication. If it is of type
JaasAuthenticationToken and is authenticated, the Subject is returned from
it.
Copyright © 2020. All rights reserved.