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.
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 |
UsernamePasswordLoginHandler
public UsernamePasswordLoginHandler(String servletURL)
- Constructor.
- Parameters:
servletURL
- URL to the authentication servlet
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 © 2006-2009 Internet2. All Rights Reserved.