Class SoapAuthService

    • Constructor Detail

      • SoapAuthService

        public SoapAuthService()
    • Method Detail

      • login

        public String login​(String username,
                            String password)
                     throws Exception
        Description copied from interface: AuthService
        Starts a new session.
        Specified by:
        login in interface AuthService
        Parameters:
        username - The username
        password - The password
        Returns:
        The newly created session identifier(sid)
        Throws:
        Exception - error in the server application
      • logout

        public void logout​(String sid)
        Description copied from interface: AuthService
        Closes a session.
        Specified by:
        logout in interface AuthService
        Parameters:
        sid - The session identifier
      • valid

        public boolean valid​(String sid)
        Description copied from interface: AuthService
        Checks if a SID is valid
        Specified by:
        valid in interface AuthService
        Parameters:
        sid - identifier of the session
        Returns:
        if the session is valid
      • renew

        public void renew​(String sid)
        Description copied from interface: AuthService
        Renews a session
        Specified by:
        renew in interface AuthService
        Parameters:
        sid - identifier of the session