|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.atlassian.seraph.filter.TrustedApplicationsFilter
This filter serves two purposes: 1. Authenticates requests from trusted applications if the right certificate is present in the request 2. Returns the UID and public key of this application upon request so other servers can establish trusted relationship with this application as a client
For the first purpose, the filter will intercept any calls to a page '/admin/appTrustCertificate'. Directory structure of the request will be ignored. The returned page will contain 2 lines:
For the second purpose the following header parameters must be present and valid:
CurrentApplication.HEADER_TRUSTED_APP_CERT CurrentApplication.HEADER_TRUSTED_APP_ID
If the authentication should fail a message will be set in the response header:
CurrentApplication.HEADER_TRUSTED_APP_ERROR
| Constructor Summary | |
TrustedApplicationsFilter(TrustedApplicationsManager appManager,
UserResolver resolver)
|
|
TrustedApplicationsFilter(TrustedApplicationsManager appManager,
UserResolver resolver,
RoleMapper roleMapper)
|
|
| Method Summary | |
java.lang.String |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
|
javax.servlet.FilterConfig |
getFilterConfig()
Deprecated. Not needed in latest version of Servlet 2.3 API |
protected java.lang.String |
getPathInfo(javax.servlet.http.HttpServletRequest request)
|
void |
init(javax.servlet.FilterConfig config)
|
void |
setFilterConfig(javax.servlet.FilterConfig filterConfig)
Deprecated. Not needed in latest version of Servlet 2.3 API - replaced by init(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TrustedApplicationsFilter(TrustedApplicationsManager appManager,
UserResolver resolver)
public TrustedApplicationsFilter(TrustedApplicationsManager appManager,
UserResolver resolver,
RoleMapper roleMapper)
| Method Detail |
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterjava.io.IOException
javax.servlet.ServletException
public java.lang.String authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
protected java.lang.String getPathInfo(javax.servlet.http.HttpServletRequest request)
public void init(javax.servlet.FilterConfig config)
init in interface javax.servlet.Filterpublic void destroy()
destroy in interface javax.servlet.Filterpublic javax.servlet.FilterConfig getFilterConfig()
public void setFilterConfig(javax.servlet.FilterConfig filterConfig)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||