if (signerInfoStoreType.equalsIgnoreCase("memory")) {
bind(CertPathStore.class).to(MemoryStore.class).in(Singleton.class);
} else if (signerInfoStoreType.equalsIgnoreCase("file")) {
bind(CertPathStore.class).to(FileSignerInfoStore.class).in(Singleton.class);
} else if (signerInfoStoreType.equalsIgnoreCase("mongodb")) {
MongoDbProvider mongoDbProvider = getMongoDbProvider();
bind(CertPathStore.class).toInstance(mongoDbProvider.provideMongoDbStore());
} else {
throw new RuntimeException(
"Invalid certificate path store type: '" + signerInfoStoreType + "'");
}
}