1 package org.enhydra.shark.authentication; 2 3 import org.enhydra.shark.api.*; 4 5 import org.enhydra.shark.api.internal.authentication.*; 6 import org.enhydra.shark.api.internal.working.CallbackUtilities; 7 8 import java.util.*; 9 10 14 public class LDAPAuthenticationManager implements AuthenticationManager { 15 private LDAPClient ldapClient; 17 18 private CallbackUtilities cus; 19 20 28 public void configure (CallbackUtilities cus) throws RootException { 29 this.cus=cus; 30 ldapClient=new LDAPClient(cus); 31 } 32 33 44 public boolean validateUser (UserTransaction t,String username,String pwd) throws RootException { 45 return ldapClient.checkPassword(username,pwd); 46 } 47 48 } 49 | Popular Tags |