edu.internet2.middleware.shibboleth.idp.authn.provider
Class UsernamePasswordLoginHandler
java.lang.Object
edu.internet2.middleware.shibboleth.idp.authn.provider.AbstractLoginHandler
edu.internet2.middleware.shibboleth.idp.authn.provider.UsernamePasswordLoginHandler
- All Implemented Interfaces:
- LoginHandler
public class UsernamePasswordLoginHandler
- extends AbstractLoginHandler
Authenticate a username and password against a JAAS source.
This login handler creates a 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.
|
Field Summary |
private String |
authenticationServletPath
The context-relative path of the servlet used to perform authentication. |
private org.slf4j.Logger |
log
Class logger. |
|
Method Summary |
void |
login(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Authenticate the user making the request. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private final org.slf4j.Logger log
- Class logger.
authenticationServletPath
private String authenticationServletPath
- The context-relative path of the servlet used to perform authentication.
UsernamePasswordLoginHandler
public UsernamePasswordLoginHandler(String servletPath)
- Constructor.
- Parameters:
servletPath - context-relative path to the authentication servlet, may start with "/"
login
public void login(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
- Authenticate the user making the request.
- Parameters:
httpRequest - user requesthttpResponse - response to user
Copyright © 1999-2012. All Rights Reserved.