| Modifier and Type | Field and Description |
|---|---|
| protected int | authenticationSessionTimeout
If the authentication process creates a session, this is the maximum session timeout (in seconds) during the authentication process. |
| protected String | characterEncoding
Character encoding to use to read the username and password parameters from the request. |
| protected String | landingPage
Landing page to use if a user tries to access the login page directly or if the session times out during login. |
| private final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | doAuthenticate(Request
Request we are processing request, HttpServletResponse Response we are creating response)Implements abstract org. Authenticate the user making this request, based on the specified login configuration. |
| protected void | forwardToErrorPage(Request
Request we are processing request, HttpServletResponse Response we are populating response, LoginConfig Login configuration describing how authentication should be performed config)Called to forward to the error page |
| protected void | forwardToLoginPage(Request
Request we are processing request, HttpServletResponse Response we are populating response, LoginConfig Login configuration describing how authentication should be performed config)Called to forward to the login page |
| public int | Returns: the maximum session timeout to be used during authentication if the authentication process creates a sessionReturns the maximum session timeout to be used during authentication if the authentication process creates a session. |
| protected String | getAuthMethod()
Implements abstract org. Return the authentication method, which is vendor-specific and not defined by HttpServletRequest. |
| public String | Returns: The name of the character encodingReturn the character encoding to use to read the user name and password. |
| public String | Returns: The path to the landing page relative to the web application rootReturn the landing page to use when FORM auth is mis-used. |
| protected boolean | isContinuationRequired(Request
The request currently being processed request)Overrides org. Does this authenticator require that |
| protected boolean | Returns: true if the requests matched the saved oneThe request to be verified request)Does this request match the saved one (so that it must be the redirect we signaled after successful authentication? |
| protected void | register(Request
The servlet request we are processing request, HttpServletResponse The servlet response we are generating response, Principal The authenticated Principal to be registered principal, String The authentication type to be registered authType, String Username used to authenticate (if any) username, String Password used to authenticate (if any) password, boolean Should a session always be used once a user is authenticated? alwaysUseSession, boolean Should we cache authenticated Principals if the request is part of an HTTP session? cache)Overrides org. Register an authenticated Principal and authentication type in our request, in the current session (if there is one), and with our SingleSignOn valve, if there is one. |
| protected boolean | Returns: true if the request was successfully restoredThe request to be restored request, Session The session containing the saved information session)Restore the original request from information stored in our session. |
| protected String | Returns: the original request URLOur current session session)Return the request URI (with the corresponding query string, if any) from the saved request so that we can redirect to it. |
| protected void | saveRequest(Request
The request to be saved request, Session The session to contain the saved information session)Save the original request information into our session. |
| public void | setAuthenticationSessionTimeout(int
The maximum session timeout to use duriing authentication if the
authentication process creates a session authenticationSessionTimeout)Configures the maximum session timeout to be used during authentication if the authentication process creates a session. |
| public void | setCharacterEncoding(String
The name of the encoding to use encoding)Set the character encoding to be used to read the user name and password. |
| public void | setLandingPage(String
The path to the landing page relative to the web application root landingPage)Set the landing page to use when the FORM auth is mis-used. |
| authenticationSessionTimeout | back to summary |
|---|---|
| protected int authenticationSessionTimeout If the authentication process creates a session, this is the maximum session timeout (in seconds) during the authentication process. Once authentication is complete, the default session timeout will apply. Sessions that exist before the authentication process starts will retain their original session timeout throughout. | |
| characterEncoding | back to summary |
|---|---|
| protected String characterEncoding Character encoding to use to read the username and password parameters from the request. If not set, the encoding of the request body will be used. | |
| landingPage | back to summary |
|---|---|
| protected String landingPage Landing page to use if a user tries to access the login page directly or if the session times out during login. If not set, error responses will be sent instead. | |
| log | back to summary |
|---|---|
| private final Log log Hides org. | |
| FormAuthenticator | back to summary |
|---|---|
| public FormAuthenticator() | |
| doAuthenticate | back to summary |
|---|---|
| protected boolean doAuthenticate(Request request, HttpServletResponse response) throws IOException Implements abstract org. Authenticate the user making this request, based on the specified login configuration. Return
| |
| forwardToErrorPage | back to summary |
|---|---|
| protected void forwardToErrorPage(Request request, HttpServletResponse response, LoginConfig config) throws IOException Called to forward to the error page
| |
| forwardToLoginPage | back to summary |
|---|---|
| protected void forwardToLoginPage(Request request, HttpServletResponse response, LoginConfig config) throws IOException Called to forward to the login page
| |
| getAuthenticationSessionTimeout | back to summary |
|---|---|
| public int getAuthenticationSessionTimeout() Returns the maximum session timeout to be used during authentication if the authentication process creates a session.
| |
| getAuthMethod | back to summary |
|---|---|
| protected String getAuthMethod() Implements abstract org. Doc from org. Return the authentication method, which is vendor-specific and not defined by HttpServletRequest. | |
| getCharacterEncoding | back to summary |
|---|---|
| public String getCharacterEncoding() Return the character encoding to use to read the user name and password.
| |
| getLandingPage | back to summary |
|---|---|
| public String getLandingPage() Return the landing page to use when FORM auth is mis-used.
| |
| isContinuationRequired | back to summary |
|---|---|
| protected boolean isContinuationRequired(Request request) Overrides org. Doc from org. Does this authenticator require that | |
| matchRequest | back to summary |
|---|---|
| protected boolean matchRequest(Request request) Does this request match the saved one (so that it must be the redirect we signaled after successful authentication?
| |
| register | back to summary |
|---|---|
| protected void register(Request request, HttpServletResponse response, Principal principal, String authType, String username, String password, boolean alwaysUseSession, boolean cache) Overrides org. Doc from org. Register an authenticated Principal and authentication type in our request, in the current session (if there is one), and with our SingleSignOn valve, if there is one. Set the appropriate cookie to be returned.
| |
| restoreRequest | back to summary |
|---|---|
| protected boolean restoreRequest(Request request, Session session) throws IOException Restore the original request from information stored in our session. If the original request is no longer present
(because the session timed out), return
| |
| savedRequestURL | back to summary |
|---|---|
| protected String savedRequestURL(Session session) Return the request URI (with the corresponding query string, if any) from the saved request so that we can redirect to it. | |
| saveRequest | back to summary |
|---|---|
| protected void saveRequest(Request request, Session session) throws IOException Save the original request information into our session.
| |
| setAuthenticationSessionTimeout | back to summary |
|---|---|
| public void setAuthenticationSessionTimeout(int authenticationSessionTimeout) Configures the maximum session timeout to be used during authentication if the authentication process creates a session.
| |
| setCharacterEncoding | back to summary |
|---|---|
| public void setCharacterEncoding(String encoding) Set the character encoding to be used to read the user name and password.
| |
| setLandingPage | back to summary |
|---|---|
| public void setLandingPage(String landingPage) Set the landing page to use when the FORM auth is mis-used.
| |