diff options
Diffstat (limited to 'base/tps-tomcat/src/org/dogtagpki/server/tps/dbs/AuthenticatorDatabase.java')
-rw-r--r-- | base/tps-tomcat/src/org/dogtagpki/server/tps/dbs/AuthenticatorDatabase.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/tps-tomcat/src/org/dogtagpki/server/tps/dbs/AuthenticatorDatabase.java b/base/tps-tomcat/src/org/dogtagpki/server/tps/dbs/AuthenticatorDatabase.java index f6425bc8d..912207501 100644 --- a/base/tps-tomcat/src/org/dogtagpki/server/tps/dbs/AuthenticatorDatabase.java +++ b/base/tps-tomcat/src/org/dogtagpki/server/tps/dbs/AuthenticatorDatabase.java @@ -53,13 +53,14 @@ public class AuthenticatorDatabase extends CSCfgDatabase<AuthenticatorRecord> { } @Override - public Collection<AuthenticatorRecord> getRecords() throws Exception { + public Collection<AuthenticatorRecord> findRecords(String filter) throws Exception { Collection<AuthenticatorRecord> result = new ArrayList<AuthenticatorRecord>(); ConfigDatabase configDatabase = new ConfigDatabase(); ConfigRecord configRecord = configDatabase.getRecord(substoreName); for (String authenticatorID : configRecord.getKeys()) { + if (filter != null && !authenticatorID.contains(filter)) continue; AuthenticatorRecord authenticatorRecord = createAuthenticatorRecord(configDatabase, configRecord, authenticatorID); result.add(authenticatorRecord); } |