public class UsernamePasswordLoginServlet
extends javax.servlet.http.HttpServlet
Subject
as
a UsernamePasswordCredential
within the subject's private credentials.
By default, this Servlet assumes that the authentication method
urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
to be returned to the authentication
engine. This can be override by setting the servlet configuration parameter authnMethod
.修飾子とタイプ | クラスと説明 |
---|---|
protected class |
UsernamePasswordLoginServlet.SimpleCallbackHandler
A callback handler that provides static name and password data to a JAAS loging process.
|
コンストラクタと説明 |
---|
UsernamePasswordLoginServlet() |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
authenticateUser(javax.servlet.http.HttpServletRequest request,
String username,
String password)
Authenticate a username and password against JAAS.
|
void |
init(javax.servlet.ServletConfig config) |
protected void |
redirectToLoginPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Sends the user to the login page.
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
インタフェース内 javax.servlet.Servlet
init
クラス内 javax.servlet.GenericServlet
javax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
クラス内 javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void redirectToLoginPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- current requestresponse
- current responseprotected void authenticateUser(javax.servlet.http.HttpServletRequest request, String username, String password) throws LoginException
request
- current authentication requestusername
- the principal name of the user to be authenticatedpassword
- the password of the user to be authenticatedLoginException
- thrown if there is a problem authenticating the userCopyright © 2012. All Rights Reserved.