Class ResourceRepresentation

java.lang.Object
org.keycloak.representations.idm.authorization.ResourceRepresentation
Direct Known Subclasses:
AbstractResourceService.Resource, UmaResourceRepresentation

public class ResourceRepresentation extends Object

One or more resources that the resource server manages as a set of protected resources.

For more details, OAuth-resource-reg.

Author:
Pedro Igor
  • Constructor Details

    • ResourceRepresentation

      public ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, Set<String> uris, String type, String iconUri)
      Creates a new instance.
      Parameters:
      name - a human-readable string describing a set of one or more resources
      uris - a List of URI that provides network locations for the resource set being registered
      type - a string uniquely identifying the semantics of the resource set
      scopes - the available scopes for this resource set
      iconUri - a URI for a graphic icon representing the resource set
    • ResourceRepresentation

      public ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, String uri, String type, String iconUri)
    • ResourceRepresentation

      public ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, Set<String> uris, String type)
      Creates a new instance.
      Parameters:
      name - a human-readable string describing a set of one or more resources
      uris - a List of URI that provides the network location for the resource set being registered
      type - a string uniquely identifying the semantics of the resource set
      scopes - the available scopes for this resource set
    • ResourceRepresentation

      public ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, String uri, String type)
    • ResourceRepresentation

      public ResourceRepresentation(String name, Set<ScopeRepresentation> scopes)
      Creates a new instance.
      Parameters:
      name - a human-readable string describing a set of one or more resources
      serverUri - a URI that identifies this resource server
      scopes - the available scopes for this resource set
    • ResourceRepresentation

      public ResourceRepresentation(String name, String... scopes)
    • ResourceRepresentation

      public ResourceRepresentation()
      Creates a new instance.
  • Method Details