Search in sources :

Example 6 with ResourceSet

use of org.apereo.cas.uma.ticket.resource.ResourceSet in project cas by apereo.

the class DefaultResourceSetRepositoryTests method buildTestResource.

private static ResourceSet buildTestResource() {
    val r = new ResourceSet();
    r.setClientId("clientid");
    r.setIconUri("https://www.example.com/icon");
    r.setName("resource");
    r.setOwner("cas");
    r.setScopes(CollectionUtils.wrapHashSet("read", "write"));
    r.setType("CAS-UMA");
    r.setUri("https://www.example.com/cas");
    return r;
}
Also used : lombok.val(lombok.val) ResourceSet(org.apereo.cas.uma.ticket.resource.ResourceSet)

Aggregations

lombok.val (lombok.val)6 ResourceSet (org.apereo.cas.uma.ticket.resource.ResourceSet)6 ResourceSetPolicy (org.apereo.cas.uma.ticket.resource.ResourceSetPolicy)2 ResourceSetPolicyPermission (org.apereo.cas.uma.ticket.resource.ResourceSetPolicyPermission)2 Test (org.junit.jupiter.api.Test)2 JsonIgnore (com.fasterxml.jackson.annotation.JsonIgnore)1 LinkedHashSet (java.util.LinkedHashSet)1 OAuth20AccessToken (org.apereo.cas.ticket.accesstoken.OAuth20AccessToken)1 UmaPermissionTicket (org.apereo.cas.uma.ticket.permission.UmaPermissionTicket)1 JEEContext (org.pac4j.core.context.JEEContext)1 ResponseEntity (org.springframework.http.ResponseEntity)1