@Immutable public class BasicClaimsSpec extends Object
Constructor and Description |
---|
BasicClaimsSpec()
Creates a new default basic OpenID Connect claims specification
(empty).
|
BasicClaimsSpec(Set<String> names)
Creates a new basic OpenID Connect claims specification.
|
BasicClaimsSpec(Set<String> names,
net.minidev.json.JSONObject presetIDTokenClaims,
net.minidev.json.JSONObject presetUserInfoClaims)
Creates a new basic OpenID Connect claims specification.
|
BasicClaimsSpec(Set<String> names,
net.minidev.json.JSONObject data,
PresetClaims presetClaims)
Creates a new basic OpenID Connect claims specification.
|
BasicClaimsSpec(Set<String> names,
PresetClaims presetClaims)
Creates a new basic OpenID Connect claims specification.
|
Modifier and Type | Method and Description |
---|---|
net.minidev.json.JSONObject |
getData()
Returns the optional claims fulfillment data.
|
Set<String> |
getNames()
Returns the authorised OpenID Connect claims.
|
PresetClaims |
getPresetClaims()
The additional or preset claims to be included in the ID token and
UserInfo response.
|
net.minidev.json.JSONObject |
getPresetIDTokenClaims()
Returns the additional preset claims to be included in the ID token.
|
net.minidev.json.JSONObject |
getPresetUserInfoClaims()
Returns the additional preset claims to be included in the UserInfo
response.
|
static BasicClaimsSpec |
parse(net.minidev.json.JSONObject o)
Parses a basic OpenID Connect claims specification from the
specified JSON object.
|
net.minidev.json.JSONObject |
toJSONObject()
Returns a JSON object representation of this basic claims
specification.
|
public BasicClaimsSpec()
public BasicClaimsSpec(Set<String> names)
names
- The names of the authorised OpenID Connect claims,
null
if none.public BasicClaimsSpec(Set<String> names, net.minidev.json.JSONObject presetIDTokenClaims, net.minidev.json.JSONObject presetUserInfoClaims)
names
- The names of the authorised OpenID
Connect claims, empty set or
null
if none.presetIDTokenClaims
- Additional preset claims to be included
in the ID token, null
if none.presetUserInfoClaims
- Additional preset claims to be included
in the UserInfo response, null
if none.public BasicClaimsSpec(Set<String> names, PresetClaims presetClaims)
names
- The names of the authorised OpenID Connect
claims, empty set or null
if none.presetClaims
- The additional or preset claims to be included
in the ID token and UserInfo response,
null
if none.public BasicClaimsSpec(Set<String> names, net.minidev.json.JSONObject data, PresetClaims presetClaims)
names
- The names of the authorised OpenID Connect
claims, empty set or null
if none.data
- Optional claims fulfillment data, null
if none.presetClaims
- The additional or preset claims to be included
in the ID token and UserInfo response,
null
if none.public Set<String> getNames()
public net.minidev.json.JSONObject getData()
null
if not specified.public PresetClaims getPresetClaims()
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 BasicClaimsSpec 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 © 2021 Connect2id Ltd.. All rights reserved.