Class ResourceRepresentation
java.lang.Object
org.keycloak.representations.idm.authorization.ResourceRepresentation
- Direct Known Subclasses:
AbstractResourceService.Resource
,UmaResourceRepresentation
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 Summary
ConstructorDescriptionCreates a new instance.ResourceRepresentation
(String name, String... scopes) ResourceRepresentation
(String name, Set<ScopeRepresentation> scopes) Creates a new instance.ResourceRepresentation
(String name, Set<ScopeRepresentation> scopes, String uri, String type) ResourceRepresentation
(String name, Set<ScopeRepresentation> scopes, String uri, String type, String iconUri) ResourceRepresentation
(String name, Set<ScopeRepresentation> scopes, Set<String> uris, String type) Creates a new instance.ResourceRepresentation
(String name, Set<ScopeRepresentation> scopes, Set<String> uris, String type, String iconUri) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addScope
(ScopeRepresentation scope) boolean
getId()
getName()
getOwner()
getType()
getUri()
Deprecated.getUris()
int
hashCode()
void
setAttributes
(Map<String, List<String>> attributes) void
setDisplayName
(String displayName) void
setIconUri
(String iconUri) void
void
void
void
void
setOwnerManagedAccess
(Boolean ownerManagedAccess) void
setScopes
(Set<ScopeRepresentation> scopes) void
void
Deprecated.void
-
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 resourcesuris
- aList
ofURI
that provides network locations for the resource set being registeredtype
- a string uniquely identifying the semantics of the resource setscopes
- the available scopes for this resource seticonUri
- aURI
for a graphic icon representing the resource set
-
ResourceRepresentation
-
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 resourcesuris
- aList
ofURI
that provides the network location for the resource set being registeredtype
- a string uniquely identifying the semantics of the resource setscopes
- the available scopes for this resource set
-
ResourceRepresentation
public ResourceRepresentation(String name, Set<ScopeRepresentation> scopes, String uri, String type) -
ResourceRepresentation
Creates a new instance.- Parameters:
name
- a human-readable string describing a set of one or more resourcesserverUri
- aURI
that identifies this resource serverscopes
- the available scopes for this resource set
-
ResourceRepresentation
-
ResourceRepresentation
public ResourceRepresentation()Creates a new instance.
-
-
Method Details
-
setId
-
getId
-
getName
-
getDisplayName
-
getUri
Deprecated. -
getUris
-
getType
-
getScopes
-
getIconUri
-
setName
-
setDisplayName
-
setUri
Deprecated. -
setUris
-
setType
-
setScopes
-
setIconUri
-
getOwner
-
setOwner
-
setOwner
-
getOwnerManagedAccess
-
setOwnerManagedAccess
-
addScope
-
addScope
-
getAttributes
-
setAttributes
-
equals
-
hashCode
public int hashCode()
-