net.pleso.auth.client
Interface AuthService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
DefaultAuthServiceImpl

public interface AuthService
extends com.google.gwt.user.client.rpc.RemoteService

Server-side RPC authentication service interface.


Method Summary
 UserInfo getUserInfo()
          Gets authenticated user information.
 java.lang.String[] isAuth()
          Check is user authenticated.
 java.lang.String[] loginUser(UserInfo user)
          Login user with login and password information.
 void logout()
          Logout user.
 

Method Detail

loginUser

java.lang.String[] loginUser(UserInfo user)
                             throws AuthenticationException
Login user with login and password information.

Parameters:
user - user information
Returns:
array of authenticated objects (to which user has access).
Throws:
AuthenticationException

logout

void logout()
Logout user.


isAuth

java.lang.String[] isAuth()
                          throws AuthenticationException
Check is user authenticated. Return null if user is not authenticated.

Returns:
array of authenticated objects (to which user has access).
Throws:
AuthenticationException

getUserInfo

UserInfo getUserInfo()
                     throws AuthenticationException
Gets authenticated user information.

Returns:
authenticated user information
Throws:
AuthenticationException


Copyright © 2006-2007 pleso.net crew All Rights Reserved.