Auth

From LogicalDOC Community Wiki

Jump to: navigation, search

Contents

Methods related to authentication.

String login(String username, String password)

This operation allows to start a new user session.

Parameters

  • username - User name for login.
  • password - Password for login.

Returns

  • The newly created session identifier(sid).

Throws

  • Exception - If it was not possible to create a new session.


void logout(String sid)

This operation allows to close a user session.

Parameters

  • sid - The session identifier.

Returns

  • none