org.drools.guvnor.client.rpc
Interface SecurityService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
SecurityServiceImpl, SecurityServiceServlet

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

Contains methods for authenticating/authorising from the front end.


Method Summary
 UserSecurityContext getCurrentUser()
           
 List<Capability> getUserCapabilities()
          This will return the capabilities which determine what is shown in the GUI.
 boolean login(String userName, String password)
          This will do a password authentication, using the configured JAAS provider.
 

Method Detail

login

boolean login(String userName,
              String password)
This will do a password authentication, using the configured JAAS provider. This may be a default one (which allows anything in).

Returns:
true if user is logged in successfully.

getCurrentUser

UserSecurityContext getCurrentUser()
Returns:
This returns the current user's name if they are logged in. If not then null is returned (inside a context). Will also return some other handy stuff for changing the GUI based on security context.

getUserCapabilities

List<Capability> getUserCapabilities()
This will return the capabilities which determine what is shown in the GUI. Based on the users roles and permissions.



Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.