Package com.atlassian.bitbucket.auth
Interface HttpAuthenticationContext
- All Known Subinterfaces:
 HttpAuthenticationFailureContext,HttpAuthenticationSuccessContext
public interface HttpAuthenticationContext
Context class holding all details relevant for authentication processing by 
HttpAuthenticationHandler
 modules.- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.FilterChainjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse 
- 
Field Details
- 
METHOD_BASIC
BASIC authentication.- See Also:
 
 - 
METHOD_FORM
FORM-based authentication.- See Also:
 
 - 
METHOD_TOKEN
Authentication based on some kind of token (not username/password based).- See Also:
 
 
 - 
 - 
Method Details
- 
getFilterChain
@Nonnull javax.servlet.FilterChain getFilterChain()- Returns:
 - the 
FilterChainfor the authentication request. 
 - 
getRequest
@Nonnull javax.servlet.http.HttpServletRequest getRequest()- Returns:
 - the HTTP request
 
 - 
getResponse
@Nonnull javax.servlet.http.HttpServletResponse getResponse()- Returns:
 - the HTTP response
 
 - 
getUsername
- Returns:
 - the provided username. Can be 
nullif no username was provided. The provided username may be different to the authenticated user's username, for example when using OAuth authentication. 
 - 
getCredentials
- Returns:
 - the provided credentials. Can be 
nullif no credentials were provided. 
 - 
getMethod
- Returns:
 - the requested authentication method. Can be either of 
METHOD_BASIC,METHOD_FORMorMETHOD_TOKEN. 
 
 -