Search in sources :

Example 11 with OxAuthSectorIdentifier

use of org.gluu.oxtrust.model.OxAuthSectorIdentifier in project oxTrust by GluuFederation.

the class SectorIdentifierWebResourceTest method getSector.

private OxAuthSectorIdentifier getSector(String name) {
    OxAuthSectorIdentifier sector = new OxAuthSectorIdentifier();
    sector.setDescription(name);
    sector.setRedirectUris(new ArrayList<>());
    sector.setId(UUID.randomUUID().toString());
    sector.setClientIds(new ArrayList<>());
    return sector;
}
Also used : OxAuthSectorIdentifier(org.gluu.oxtrust.model.OxAuthSectorIdentifier)

Aggregations

OxAuthSectorIdentifier (org.gluu.oxtrust.model.OxAuthSectorIdentifier)11 IOException (java.io.IOException)4 HttpEntity (org.apache.http.HttpEntity)4 HttpResponse (org.apache.http.HttpResponse)4 ParseException (org.apache.http.ParseException)4 Test (org.junit.Test)4 HttpGet (org.apache.http.client.methods.HttpGet)2 HttpPost (org.apache.http.client.methods.HttpPost)2 HttpUriRequest (org.apache.http.client.methods.HttpUriRequest)2 ByteArrayEntity (org.apache.http.entity.ByteArrayEntity)2 Filter (org.gluu.search.filter.Filter)2 HttpPut (org.apache.http.client.methods.HttpPut)1 BaseMappingException (org.gluu.persist.exception.mapping.BaseMappingException)1