use of org.pac4j.core.util.serializer.JsonSerializer in project pac4j by pac4j.
the class InMemoryProfileService method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
assertNotNull("passwordEncoder", getPasswordEncoder());
defaultProfileDefinition(new CommonProfileDefinition(profileFactory));
setSerializer(new JsonSerializer(CommonProfile.class));
super.internalInit(forceReinit);
}
use of org.pac4j.core.util.serializer.JsonSerializer 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.util.serializer.JsonSerializer in project pac4j by pac4j.
the class LdapProfileService method internalInit.
@Override
protected void internalInit(final boolean forceReinit) {
assertNotNull("ldapAuthenticator", ldapAuthenticator);
assertNotNull("connectionFactory", connectionFactory);
assertNull("passwordEncoder", getPasswordEncoder());
assertNotBlank("usersDn", usersDn);
defaultProfileDefinition(new CommonProfileDefinition(x -> new LdapProfile()));
setSerializer(new JsonSerializer(LdapProfile.class));
super.internalInit(forceReinit);
}
use of org.pac4j.core.util.serializer.JsonSerializer 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.util.serializer.JsonSerializer 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