public class UsernamePasswordLoginHandler extends AbstractLoginHandler
Subject and binds it to the request as described in the
LoginHandler documentation. If the JAAS module does not create
a principal for the user a UsernamePrincipal is created, using
the entered username. If the storeCredentialsInSubject init parameter of the authentication servlet is
set to true a UsernamePasswordCredential is created, based on the entered username and password, and stored
in the Subject's private credentials.AUTHENTICATION_ERROR_KEY, AUTHENTICATION_EXCEPTION_KEY, AUTHENTICATION_INSTANT_KEY, AUTHENTICATION_METHOD_KEY, PRINCIPAL_KEY, PRINCIPAL_NAME_KEY, SUBJECT_KEY| コンストラクタと説明 |
|---|
UsernamePasswordLoginHandler(String servletPath)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
login(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Authenticate the user making the request.
|
getAuthenticationDuration, getSupportedAuthenticationMethods, setAuthenticationDuration, setAuthenticationDurection, setSupportsForceAuthentication, setSupportsPassive, supportsForceAuthentication, supportsPassivepublic UsernamePasswordLoginHandler(String servletPath)
servletPath - context-relative path to the authentication servlet, may start with "/"Copyright © 2012. All Rights Reserved.