public class ResourceAttributeUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
JSON_PARSE_ERROR |
static String |
SEP |
Constructor and Description |
---|
ResourceAttributeUtil()
Create a default instance of the ResourceAttributeUtil.
|
Modifier and Type | Method and Description |
---|---|
ResourceAttribute |
fromJSON(String json)
Convert the JSON text into a
ResourceAttribute . |
String |
toJSON(ResourceAttribute attribute)
Convert a
Privilege ResourceAttribute into JSON representation. |
public static final int JSON_PARSE_ERROR
public static final String SEP
public ResourceAttributeUtil()
public String toJSON(ResourceAttribute attribute) throws EntitlementException
Privilege
ResourceAttribute
into JSON representation.attribute
- Non null attribute.EntitlementException
- If there was an unexpected error during conversion.public ResourceAttribute fromJSON(String json) throws EntitlementException
ResourceAttribute
.json
- Non null, maybe empty.EntitlementException
- If there was an unexpected error during conversion.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.