public final class LoginFilterRequest extends Object
| Constructor and Description |
|---|
LoginFilterRequest() |
| Modifier and Type | Method and Description |
|---|---|
static AuthenticationErrorType |
getAuthenticationErrorType(javax.servlet.http.HttpServletRequest request)
Returns the authentication error type set by the LoginFilter as a request Attribute.
|
static String |
getAuthenticationStatus(javax.servlet.http.HttpServletRequest request)
Returns the authentication status code set by the LoginFilter as a request Attribute.
|
public static String getAuthenticationStatus(javax.servlet.http.HttpServletRequest request)
The possible statuses are:
request - the HttpServletRequest to retrieve the attribute from.BaseLoginFilter.login(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)public static AuthenticationErrorType getAuthenticationErrorType(javax.servlet.http.HttpServletRequest request)
This will only be set if authentication status is "error" (BaseLoginFilter.LOGIN_ERROR),
and is not even then guaranteed to be set by all implementations of BaseLoginFilter.
The original purpose of this was to indicate when a communication error occurs with a remote authentication server.
request - the HttpServletRequest to retrieve the attribute from.AuthenticatorException.getErrorType()Copyright © 2018 Atlassian. All rights reserved.