use of org.xdi.oxauth.model.config.StaticConfiguration in project oxAuth by GluuFederation.
the class ConfSerialization method claims.
@Test
public void claims() throws IOException {
final BaseDnConfiguration baseDn = new BaseDnConfiguration();
baseDn.setAppliance("ou=appliances,o=gluu");
baseDn.setPeople("ou=people,o=@!1111,o=gluu");
baseDn.setClients("ou=clients,o=@!1111,o=gluu");
baseDn.setScopes("ou=scopes,o=@!1111,o=gluu");
baseDn.setAttributes("ou=attributes,o=@!1111,o=gluu");
baseDn.setSessionId("ou=session,o=@!1111,o=gluu");
final StaticConfiguration c = new StaticConfiguration();
c.setBaseDn(baseDn);
final String jsonStr = ServerUtil.createJsonMapper().writeValueAsString(c);
System.out.println(jsonStr);
}
Aggregations