public class CommonIdentityAssertionFilter extends AbstractIdentityAssertionFilter
| Constructor and Description |
|---|
CommonIdentityAssertionFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Obtain the standard javax.security.auth.Subject, retrieve the caller principal, map
to the identity to be asserted as appropriate and create the provider specific
assertion token.
|
void |
init(javax.servlet.FilterConfig filterConfig) |
String[] |
mapGroupPrincipals(String mappedPrincipalName,
Subject subject)
This method returns a Stringp[] of new group principal names to use
based on implementation specific mapping or lookup mechanisms.
|
protected String[] |
mapGroupPrincipalsBase(String mappedPrincipalName,
Subject subject) |
String |
mapUserPrincipal(String principalName)
This method is used to map the username of the authenticated identity to some other
principal name based on an implementation specific mechanism.
|
protected String |
mapUserPrincipalBase(String principalName) |
javax.servlet.http.HttpServletRequestWrapper |
wrapHttpServletRequest(javax.servlet.ServletRequest request,
String mappedPrincipalName) |
continueChainAsPrincipalgetPrincipalNamepublic void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void destroy()
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic javax.servlet.http.HttpServletRequestWrapper wrapHttpServletRequest(javax.servlet.ServletRequest request,
String mappedPrincipalName)
protected String[] mapGroupPrincipalsBase(String mappedPrincipalName, Subject subject)
public String[] mapGroupPrincipals(String mappedPrincipalName, Subject subject)
AbstractIdentityAssertionFiltermapGroupPrincipals in class AbstractIdentityAssertionFiltermappedPrincipalName - username for the authenticated identity - post mapUserPrincipal mapping.subject - the existing Subject from the authentication event which may or may not contain GroupPrincipals.public String mapUserPrincipal(String principalName)
AbstractIdentityAssertionFiltermapUserPrincipal in class AbstractIdentityAssertionFilterCopyright © 2018 Apache Software Foundation. All rights reserved.