org.safehaus.triplesec.guardian.ldap
Class LdapConnectionDriver

java.lang.Object
  extended by org.safehaus.triplesec.guardian.ldap.LdapConnectionDriver
All Implemented Interfaces:
ConnectionDriver

public class LdapConnectionDriver
extends java.lang.Object
implements ConnectionDriver

Version:
$Rev: 62 $
Author:
Alex Karasulu

Constructor Summary
LdapConnectionDriver()
           
 
Method Summary
 boolean accept(java.lang.String url)
          Implement this method to return true if and only if this driver can connect to the specified url
 ApplicationPolicy newStore(java.lang.String url, java.util.Properties info)
          Implement this method to connect to the ApplicationPolicy with the specified url and return the connected ApplicationPolicy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapConnectionDriver

public LdapConnectionDriver()
Method Detail

accept

public boolean accept(java.lang.String url)
Description copied from interface: ConnectionDriver
Implement this method to return true if and only if this driver can connect to the specified url

Specified by:
accept in interface ConnectionDriver
Parameters:
url - the URL to connect to
Returns:
true if and only if this driver can connect to the specified url

newStore

public ApplicationPolicy newStore(java.lang.String url,
                                  java.util.Properties info)
                           throws GuardianException
Description copied from interface: ConnectionDriver
Implement this method to connect to the ApplicationPolicy with the specified url and return the connected ApplicationPolicy.

Specified by:
newStore in interface ConnectionDriver
Parameters:
url - the URL to connect to
info - the extra information a user specified
Returns:
the connected ApplicationPolicy
Throws:
GuardianException - if failed to connect