Class AuthenticationService


  • public class AuthenticationService
    extends java.lang.Object
    Web Service class for Authentication operations.
    Since:
    4.0.9
    Version:
    $Revision: 16824 $ $Date: 2015-01-23 18:49:12 -0200 (Fri, 23 Jan 2015) $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String loginUser​(java.lang.String login, java.lang.String password)
      Logins a user using the specified password as his credentials, and returns the new sessionId for the logged in user.
      void logoutUser​(java.lang.String sessionId)
      Close the user's session given the sessionId.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthenticationService

        public AuthenticationService()
    • Method Detail

      • loginUser

        public java.lang.String loginUser​(java.lang.String login,
                                          java.lang.String password)
                                   throws WebServicePortalFault
        Logins a user using the specified password as his credentials, and returns the new sessionId for the logged in user. If the login fail, this method throws a PortalException.
        Parameters:
        login - the user's login.
        password - the user's password.
        Returns:
        the created sessionId
        Throws:
        WebServicePortalFault - if the login operation fails.
      • logoutUser

        public void logoutUser​(java.lang.String sessionId)
                        throws WebServicePortalFault
        Close the user's session given the sessionId.
        Parameters:
        sessionId -
        Throws:
        WebServicePortalFault - if the logout operation fails.