public class BasicApplicationAuthenticationFilter extends AbstractBasicAuthenticationFilter
AbstractBasicAuthenticationFilter.Credentials
Constructor and Description |
---|
BasicApplicationAuthenticationFilter(ApplicationManager applicationManager,
ClientValidationManager clientValidationManager,
TokenAuthenticationManager tokenAuthenticationManager) |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain) |
protected String |
getAuthenticatedEntity(javax.servlet.http.HttpServletRequest request)
Returns the authenticated entity from the
request , or null if there is no authenticated entity. |
protected String |
getAuthenticationErrorMessage()
Returns the authentication error message.
|
protected String |
getBasicRealm()
Returns the Basic Realm in the WWW-Authenticate header.
|
protected String |
getEntityAttributeKey()
Returns the HTTP request attribute key for the entity.
|
protected boolean |
isAuthenticated(javax.servlet.http.HttpServletRequest request,
AbstractBasicAuthenticationFilter.Credentials credentials)
Decorates the parent behaviour to check also the validity of the token
|
protected void |
setAuthenticatedEntity(javax.servlet.http.HttpServletRequest request,
String name)
Sets the authenticated entity.
|
destroy, ensureSeraphForwardsRequest, getBasicAuthCredentials, init, respondWithChallenge
public BasicApplicationAuthenticationFilter(ApplicationManager applicationManager, ClientValidationManager clientValidationManager, TokenAuthenticationManager tokenAuthenticationManager)
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected boolean isAuthenticated(javax.servlet.http.HttpServletRequest request, AbstractBasicAuthenticationFilter.Credentials credentials)
isAuthenticated
in class AbstractBasicAuthenticationFilter
request
- HTTP servlet request possibly containing a HttpSessioncredentials
- credentials sent with the requesttrue
is the application is authenticatedprotected String getAuthenticatedEntity(javax.servlet.http.HttpServletRequest request)
request
, or null if there is no authenticated entity.getAuthenticatedEntity
in class AbstractBasicAuthenticationFilter
request
- Requestrequest
, or null if there is no authenticated entity.protected void setAuthenticatedEntity(javax.servlet.http.HttpServletRequest request, String name)
setAuthenticatedEntity
in class AbstractBasicAuthenticationFilter
request
- Requestname
- the name of the authenticated entityprotected String getEntityAttributeKey()
AbstractBasicAuthenticationFilter
getEntityAttributeKey
in class AbstractBasicAuthenticationFilter
protected String getAuthenticationErrorMessage()
AbstractBasicAuthenticationFilter
getAuthenticationErrorMessage
in class AbstractBasicAuthenticationFilter
protected String getBasicRealm()
AbstractBasicAuthenticationFilter
getBasicRealm
in class AbstractBasicAuthenticationFilter
Copyright © 2013 Atlassian. All Rights Reserved.