public final class PresetClaims extends Object
Constructor and Description |
---|
PresetClaims()
Creates a new empty preset claims instance.
|
PresetClaims(net.minidev.json.JSONObject idTokenClaims,
net.minidev.json.JSONObject userInfoClaims)
Creates a new preset claims instance.
|
Modifier and Type | Method and Description |
---|---|
net.minidev.json.JSONObject |
getPresetIDTokenClaims()
Returns the additional or preset claims to be included in the ID
token.
|
net.minidev.json.JSONObject |
getPresetUserInfoClaims()
Returns the additional or preset claims to be returned in the
UserInfo response.
|
static PresetClaims |
parse(net.minidev.json.JSONObject o)
Parses a preset claims representation from the specified JSON
object.
|
net.minidev.json.JSONObject |
toJSONObject()
Returns a JSON object representation of this preset claims instance.
|
String |
toString() |
public PresetClaims()
public PresetClaims(net.minidev.json.JSONObject idTokenClaims, net.minidev.json.JSONObject userInfoClaims)
idTokenClaims
- Additional or preset claims to be included in
the ID token, null
if none.userInfoClaims
- Additional or preset claims to be included in
the UserInfo response, null
if none.public net.minidev.json.JSONObject getPresetIDTokenClaims()
null
if none.public net.minidev.json.JSONObject getPresetUserInfoClaims()
null
if none.public net.minidev.json.JSONObject toJSONObject()
public static PresetClaims parse(net.minidev.json.JSONObject o) throws com.nimbusds.oauth2.sdk.ParseException
o
- The JSON object. Must not be null
.com.nimbusds.oauth2.sdk.ParseException
- If parsing failed.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.