shared.authorization
Interface IUserAuthorizer


public interface IUserAuthorizer

This interface defines how event handlers can query for authentication information. The methods include determining whether or not a password matches and whether or not this user possesses a named capability.


Method Summary
 boolean isAuthenticated(java.lang.String userName, java.lang.String password)
          Determine if this user is both known to the directory and if the password matches what is in the directory.
 boolean isCapable(java.lang.String userName, java.lang.String capability)
          Determine if this user has the named capability.
 

Method Detail

isAuthenticated

boolean isAuthenticated(java.lang.String userName,
                        java.lang.String password)
Determine if this user is both known to the directory and if the password matches what is in the directory.

Parameters:
userName - user name supplied
password - password supplied
Returns:
true only if user exists and password matches

isCapable

boolean isCapable(java.lang.String userName,
                  java.lang.String capability)
Determine if this user has the named capability.

Parameters:
userName - user name supplied
capability - capability desired
Returns:
true only if user has requested capability