KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > ra > userdatasource > ICustomUserDataSource


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 package org.ejbca.core.model.ra.userdatasource;
15
16 import java.util.Collection JavaDoc;
17 import java.util.Properties JavaDoc;
18
19 import org.ejbca.core.model.log.Admin;
20
21
22
23
24
25 /**
26  * Interface contating methods that need to be implementet in order
27  * to have a custom user data source. All Custom user data sources must implement this interface.
28  *
29  * @version $Id: ICustomUserDataSource.java,v 1.1 2006/07/20 17:47:26 herrvendil Exp $
30  */

31
32 public interface ICustomUserDataSource {
33     
34     /**
35      * Method called to all newly created IUserDataSource to set it up with
36      * saved configuration.
37      */

38     public abstract void init(Properties JavaDoc properties);
39     
40     /**
41      * @see org.ejbca.core.model.ra.userdatasource.BaseUserDataSource
42      */

43     public Collection JavaDoc fetch(Admin admin, String JavaDoc searchstring) throws UserDataSourceException;
44     
45     /**
46      * @see org.ejbca.core.model.ra.userdatasource.BaseUserDataSource
47      */

48     public abstract void testConnection(Admin admin) throws UserDataSourceConnectionException;
49     
50
51 }
52
53
Popular Tags