Search in sources :

Example 1 with StaticConfiguration

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);
}
Also used : StaticConfiguration(org.xdi.oxauth.model.config.StaticConfiguration) BaseDnConfiguration(org.xdi.oxauth.model.config.BaseDnConfiguration) Test(org.testng.annotations.Test)

Aggregations

Test (org.testng.annotations.Test)1 BaseDnConfiguration (org.xdi.oxauth.model.config.BaseDnConfiguration)1 StaticConfiguration (org.xdi.oxauth.model.config.StaticConfiguration)1