use of org.pac4j.core.credentials.password.PasswordEncoder in project pac4j by pac4j.
the class DbProfileService method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
assertNotNull("passwordEncoder", getPasswordEncoder());
assertNotNull("dataSource", this.dataSource);
this.dbi = new DBI(this.dataSource);
defaultProfileDefinition(new CommonProfileDefinition(x -> new DbProfile()));
setSerializer(new JsonSerializer(DbProfile.class));
super.internalInit(forceReinit);
}
use of org.pac4j.core.credentials.password.PasswordEncoder in project pac4j by pac4j.
the class DbProfileService method internalInit.
@Override
protected void internalInit() {
CommonHelper.assertNotNull("passwordEncoder", getPasswordEncoder());
defaultProfileDefinition(new CommonProfileDefinition<>(x -> new DbProfile()));
CommonHelper.assertNotNull("dataSource", this.dataSource);
this.dbi = new DBI(this.dataSource);
super.internalInit();
}
use of org.pac4j.core.credentials.password.PasswordEncoder in project pac4j by pac4j.
the class CouchProfileService method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
assertNotNull("passwordEncoder", getPasswordEncoder());
assertNotNull("couchDbConnector", this.couchDbConnector);
defaultProfileDefinition(new CommonProfileDefinition(x -> new CouchProfile()));
setSerializer(new JsonSerializer(CouchProfile.class));
super.internalInit(forceReinit);
}
use of org.pac4j.core.credentials.password.PasswordEncoder in project pac4j by pac4j.
the class MongoProfileService method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
CommonHelper.assertNotNull("passwordEncoder", getPasswordEncoder());
CommonHelper.assertNotNull("mongoClient", this.mongoClient);
CommonHelper.assertNotBlank("usersDatabase", this.usersDatabase);
CommonHelper.assertNotBlank("usersCollection", this.usersCollection);
defaultProfileDefinition(new CommonProfileDefinition(x -> new MongoProfile()));
setSerializer(new JsonSerializer(MongoProfile.class));
super.internalInit(forceReinit);
}
Aggregations