use of org.apereo.cas.adaptors.yubikey.dao.MongoDbYubiKeyAccountRegistry in project cas by apereo.
the class MongoDbYubiKeyConfiguration method yubiKeyAccountRegistry.
@RefreshScope
@Bean
public YubiKeyAccountRegistry yubiKeyAccountRegistry() {
final YubiKeyMultifactorProperties yubi = casProperties.getAuthn().getMfa().getYubikey();
final MongoDbYubiKeyAccountRegistry registry = new MongoDbYubiKeyAccountRegistry(yubiKeyAccountValidator, mongoYubiKeyTemplate(), yubi.getMongo().getCollection());
registry.setCipherExecutor(this.yubikeyAccountCipherExecutor);
return registry;
}
Aggregations