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
-
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.FilterChain
javax.servlet.http.HttpServletRequest
javax.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
FilterChain
for 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
null
if 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
null
if no credentials were provided.
-
getMethod
- Returns:
- the requested authentication method. Can be either of
METHOD_BASIC
,METHOD_FORM
orMETHOD_TOKEN
.
-