org.exoplatform.ws.security.oauth.http
Class OAuthAuthenticationServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.exoplatform.ws.security.oauth.http.OAuthAuthenticationServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class OAuthAuthenticationServlet
extends javax.servlet.http.HttpServlet

Version:
$Id: $
Author:
Andrey Parfonov
See Also:
Serialized Form

Field Summary
protected  java.lang.String loginPage
          Login page name.
 
Constructor Summary
OAuthAuthenticationServlet()
           
 
Method Summary
 void init(javax.servlet.ServletConfig config)
          
 void service(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
          Authenticate user.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loginPage

protected java.lang.String loginPage
Login page name. Should be describe in web.xml, as context-param with name login-page.

Constructor Detail

OAuthAuthenticationServlet

public OAuthAuthenticationServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

service

public void service(javax.servlet.http.HttpServletRequest httpRequest,
                    javax.servlet.http.HttpServletResponse httpResponse)
             throws javax.servlet.ServletException,
                    java.io.IOException
Authenticate user. First user will be redirected to authentication page where user must insert name and password.

Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2010 eXo Platform SAS. All Rights Reserved.