org.exoplatform.services.authentication.rest
Class RESTAuthenticator

java.lang.Object
  extended by org.exoplatform.services.authentication.rest.RESTAuthenticator
All Implemented Interfaces:
org.exoplatform.services.rest.container.ResourceContainer

public class RESTAuthenticator
extends java.lang.Object
implements org.exoplatform.services.rest.container.ResourceContainer

Version:
$Id: $
Author:
Vitaly Parfonov

Constructor Summary
RESTAuthenticator()
           
 
Method Summary
 org.exoplatform.services.rest.Response authenticate(java.lang.String username, java.lang.String password)
          Check if the username and the password of an user is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RESTAuthenticator

public RESTAuthenticator()
Method Detail

authenticate

public org.exoplatform.services.rest.Response authenticate(java.lang.String username,
                                                           java.lang.String password)
Check if the username and the password of an user is valid.

Returns:
return Response with status 200 (OK) if the login is successful, otherwise return Response with status 403 (Forbidden).


Copyright © 2010 eXo Platform SAS. All Rights Reserved.