org.safehaus.triplesec.guardian.ldif
Class LdifConnectionDriver

java.lang.Object
  extended by org.safehaus.triplesec.guardian.ldif.LdifConnectionDriver
All Implemented Interfaces:
ConnectionDriver

public class LdifConnectionDriver
extends java.lang.Object
implements ConnectionDriver

A simple LDIF file based driver for guardian.

Version:
$Rev: 62 $
Author:
Alex Karasulu

Constructor Summary
LdifConnectionDriver()
           
 
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

LdifConnectionDriver

public LdifConnectionDriver()
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