Class AuthenticationService


  • public class AuthenticationService
    extends java.lang.Object
    Web Service class for Authentication operations.
    Since:
    4.0.9
    Version:
    $Revision$ $Date$
    • 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.