gov.nih.nci.caarray.services.security.intf
Interface AuthenticationDAItf

All Known Implementing Classes:
LdapAuthenticationDAObj, RdbmsAuthenticationDAObj

public interface AuthenticationDAItf

An interface defines the generic properties of an authentication data service object.

Version:
1.0
Author:
Q. Pan

Method Summary
 java.lang.String getEmail(java.lang.String loginName)
          The email address associated with the login name.
 Role[] getRole(java.lang.String loginName)
          Returns an array of Role objects associated with the login name.
 boolean isAuthenticationSuccessful(java.lang.String loginName, java.lang.String passwd)
          Returns the result of the user authentication.
 

Method Detail

isAuthenticationSuccessful

boolean isAuthenticationSuccessful(java.lang.String loginName,
                                   java.lang.String passwd)
Returns the result of the user authentication.

Parameters:
loginName - the login name of the user
passwd - the password of the user
Returns:
true for successful authentication
false for failed authentication

getRole

Role[] getRole(java.lang.String loginName)
Returns an array of Role objects associated with the login name.

Parameters:
loginName - the login name of the user
Returns:
an array of Role objects associated with the login name

getEmail

java.lang.String getEmail(java.lang.String loginName)
The email address associated with the login name.

Parameters:
loginName - the login name of the user
Returns:
an email addresss associated with the login name