Hi all,
I am doing a client-server application and with server app both in web and local network.
In my application,i need user authentication.I need five user security levels.and functionalities of the application is restricted according to user secrity levels.for eg: admin will access all functionalities,and trial user will be restricted to some of functionalities.and all the clients will get the same application in client-side.so restriction is based on their authentication.
The client is not a brawser.It's a swing app.
What i actually need is,i want to restrict some users from accessing some database tables.
I dont like to create user in database(there will be a users table,but i mean dont like to create db permissions to each users).But i wanna do it in
java layer.Since the client is similer to all security level users,which
pattern will be ideal to tackle this situation?.
I am thinking abt creating a 'user state' variable in client application,which server will return after authentication.so i can disable some buttons for some users.
But any other good patterns for it?.
I need some 'user' security level patterns and advice in serverside.I need some alternative thoughts and advice.
[ June 21, 2004: Message edited by: Murasoli Maran ]