|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OXLoginInterface
This interface defines methods for doing a "login" for an user or admin.
Can be usefull in UI`s which provide login masks for checking login informations.
Example:
final OXLoginInterface iface = (OXLoginInterface)Naming.lookup("rmi:///oxhost/"+OXLoginInterface.RMI_NAME); final Context ctx = new Context(1); final Credentials auth = new Credentials(); auth.setLogin("myuser"); auth.setPassword("secret"); try{ User account_data = iface.login2User(ctx,auth); // Do something after user logged in successfully. }catch(InvalidCredentialsException ice){ // show error in UI. }
Field Summary | |
---|---|
static String |
RMI_NAME
RMI name to be used in the naming lookup. |
Method Summary | |
---|---|
void |
login(Context ctx,
Credentials auth)
Login method to check if given credentials are correct. |
void |
login(Credentials auth)
Login method for the master admin account. |
User |
login2User(Context ctx,
Credentials auth)
Login method for a context admin or a normal user. |
Field Detail |
---|
static final String RMI_NAME
Method Detail |
---|
void login(Context ctx, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
ctx
- auth
-
RemoteException
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
DatabaseUpdateException
User login2User(Context ctx, Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, NoSuchContextException, InvalidDataException, DatabaseUpdateException
ctx
- auth
-
RemoteException
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
DatabaseUpdateException
void login(Credentials auth) throws RemoteException, StorageException, InvalidCredentialsException, InvalidDataException
auth
-
RemoteException
StorageException
InvalidCredentialsException
InvalidDataException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |