gov.nih.nci.caarray.services.security
Class LdapAuthenticationDAObj

java.lang.Object
  extended by gov.nih.nci.caarray.services.security.LdapAuthenticationDAObj
All Implemented Interfaces:
AuthenticationDAItf

public class LdapAuthenticationDAObj
extends java.lang.Object
implements AuthenticationDAItf

This authentication data service class is a local implementation of AuthenticationDAItf using NCI Directory Server as the data repository.

Version:
1.0
Author:
Q. Pan

Constructor Summary
LdapAuthenticationDAObj()
          Constructor for a new LdapAuthenticationDAObj object.
 
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.
 Role[] getRole(java.lang.String loginName, java.lang.String applicationName)
          Returns an array of Role objects associated with the login name and application.
 boolean isAuthenticationSuccessful(java.lang.String loginName, java.lang.String passwd)
          Returns the result of the user authentication using a LDAP server as data repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapAuthenticationDAObj

public LdapAuthenticationDAObj()
Constructor for a new LdapAuthenticationDAObj object.

Method Detail

isAuthenticationSuccessful

public boolean isAuthenticationSuccessful(java.lang.String loginName,
                                          java.lang.String passwd)
Returns the result of the user authentication using a LDAP server as data repository.

Specified by:
isAuthenticationSuccessful in interface AuthenticationDAItf
Parameters:
loginName - the login name of the user
passwd - the password of the user
Returns:
true for successful authentication
false for failed authentication

getRole

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

Specified by:
getRole in interface AuthenticationDAItf
Parameters:
loginName - the login name of the user
Returns:
an array of Role objects associated with the login name

getRole

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

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

getEmail

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

Specified by:
getEmail in interface AuthenticationDAItf
Parameters:
loginName - the login name of the user
Returns:
an email addresss associated with the login name