Package org.forgerock.openam.oauth2
Class ResourceSetDescription
java.lang.Object
org.forgerock.openam.oauth2.ResourceSetDescription
Represents a resource set description created by an OAuth2 client (resource server).
- Since:
- 13.0.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
Returns the description of the resource set as aMap
.copy()
Returns a copy of this resource set description object.boolean
Gets the client id that created the resource set.Gets the resource set description as aJsonValue
.Gets the resource set icon uri.getId()
Gets the unique resource set id of the resource set across all clients (resource servers).getName()
Gets the name of the resource set.Gets the name of the policy linked to this resource set.Gets the policy uri for the resource set.getRealm()
Gets the realm for the Resource Set Description.Gets the resource owner id of the resource set.Gets the set of available scopes for the resource set.getType()
Gets the type of the resource set.getUri()
Gets the uri of the resource set.int
hashCode()
void
setClientId
(String clientId) void
setDescription
(JsonValue description) void
void
void
void
setPolicyUri
(String policyUri) void
Sets the realm for the Resource Set Description.void
setResourceOwnerId
(String resourceOwnerId) toString()
Replaces the description of the resource set with the givendescription
.
-
Field Details
-
NAME
- See Also:
-
URI
- See Also:
-
TYPE
- See Also:
-
SCOPES
- See Also:
-
ICON_URI
- See Also:
-
-
Constructor Details
-
ResourceSetDescription
public ResourceSetDescription(String id, String clientId, String resourceOwnerId, Map<String, Object> description) Constructs a new ResourceSetDescription instance.- Parameters:
id
- The unique id across all resource sets.clientId
- The id of the client (resource server) which created the resource set.resourceOwnerId
- The id of the user that owns this resource set.description
- The description of the resource set.
-
ResourceSetDescription
public ResourceSetDescription()Bean-spec compliant constructor
-
-
Method Details
-
getId
Gets the unique resource set id of the resource set across all clients (resource servers).- Returns:
- The unique id.
-
getRealm
Gets the realm for the Resource Set Description.- Returns:
- The realm.
-
setRealm
Sets the realm for the Resource Set Description.- Parameters:
realm
- The realm.
-
getClientId
Gets the client id that created the resource set.- Returns:
- The client id.
-
getResourceOwnerId
Gets the resource owner id of the resource set.- Returns:
- The resource owner id.
-
getPolicyUri
Gets the policy uri for the resource set.- Returns:
- The policy uri.
-
getName
Gets the name of the resource set.- Returns:
- The resource set name.
-
getPolicy
Gets the name of the policy linked to this resource set.- Returns:
- The policy.
-
getUri
Gets the uri of the resource set.- Returns:
- The resource set uri.
-
getType
Gets the type of the resource set.- Returns:
- The resource set type.
-
getScopes
Gets the set of available scopes for the resource set.- Returns:
- The available scopes.
-
getIconUri
Gets the resource set icon uri.- Returns:
- The icon uri.
-
update
Replaces the description of the resource set with the givendescription
.- Parameters:
description
- The description to replace with.- Returns:
- This resource set description.
-
getDescription
Gets the resource set description as aJsonValue
.- Returns:
- The description as a
JsonValue
.
-
asMap
Returns the description of the resource set as aMap
.- Returns:
- The description.
-
setId
-
setClientId
-
setResourceOwnerId
-
setDescription
-
setPolicyUri
-
setName
-
setPolicy
-
copy
Returns a copy of this resource set description object.- Returns:
- A copy of this resource set description.
-
equals
-
hashCode
public int hashCode() -
toString
-