public class AuthzDetails extends Object implements Serializable
authorization_details which is defined in
"OAuth 2.0 Rich Authorization Requests".| Constructor and Description |
|---|
AuthzDetails() |
| Modifier and Type | Method and Description |
|---|---|
static AuthzDetails |
fromJson(String json)
Build an
AuthzDetails instance from a JSON string. |
AuthzDetailsElement[] |
getElements()
Get the elements of this authorization details.
|
AuthzDetails |
setElements(AuthzDetailsElement[] elements)
Set the elements of this authorization details.
|
String |
toJson()
Convert this instance into a JSON string.
|
public AuthzDetailsElement[] getElements()
public AuthzDetails setElements(AuthzDetailsElement[] elements)
elements - Elements of this authorization details.this object.public String toJson()
The returned string contains a JSON array that represents
the elements returned from getElements().
When the value of the elements is null, this method
returns "null".
public static AuthzDetails fromJson(String json)
AuthzDetails instance from a JSON string.
The following is an example of input JSON.
[
{
"type" : "typ0",
"locations" : ["loc0", "loc1"],
"actions" : ["act0", "act1"],
"identifier": "my_id",
"prop0" : "a",
"prop1" : ["b", "c"],
"prop2" : {
"sub0": "d",
"sub1": ["e", "f"]
}
},
{
"type" : "typ1"
}
]
json - A JSON string.AuthzDetails instance built from the input JSON.Copyright © 2020. All rights reserved.