I am planing to use JAAS for authorization purpose.

I am using GWT on GUI side and Java on server side.

Please suggest some code to handle authorization using JAAS. Does it has support for GWT?. Is there any way to control disable and enable button using JAAS?

Does any library available to handle authorization for GWT appliation?.