Class VerifiedClaimsSetRequest
java.lang.Object
com.nimbusds.openid.connect.sdk.claims.ClaimsSetRequest
com.nimbusds.openid.connect.sdk.assurance.claims.VerifiedClaimsSetRequest
- All Implemented Interfaces:
net.minidev.json.JSONAware
Deprecated.
OpenID Connect verified claims set request, intended to represent the
verified_claims
sub-element within a userinfo
or
id_token
element in a
claims
request
parameter.
Example:
{ "verification": { "trust_framework": "eidas_ial" }, "claims":{ "given_name": null, "family_name": null, "birthdate": null } }
Related specifications:
- OpenID Connect Core 1.0
- OpenID Connect for Identity Assurance 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSetRequest
ClaimsSetRequest.Entry
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new empty OpenID Connect verified claims set request.VerifiedClaimsSetRequest
(Collection<ClaimsSetRequest.Entry> entries, net.minidev.json.JSONObject verificationJSONObject) Deprecated.Creates a new OpenID Connect verified claims set request. -
Method Summary
Modifier and TypeMethodDescriptionadd
(ClaimsSetRequest.Entry entry) Deprecated.Adds the specified claim to the request.Deprecated.Adds the specified claim to the request, using default settings.Deprecated.Deletes the specified claim from this request, in all existing language tag variations if any.Deprecated.Deletes the specified claim from this request.net.minidev.json.JSONObject
Deprecated.Gets theverification
element.static VerifiedClaimsSetRequest
Deprecated.Parses an OpenID Connect verified claims set request from the specified JSON object string representation.static VerifiedClaimsSetRequest
parse
(net.minidev.json.JSONObject jsonObject) Deprecated.Parses an OpenID Connect verified claims set request from the specified JSON object representation.net.minidev.json.JSONObject
Deprecated.Returns the JSON object representation of this verified claims set request.withVerificationJSONObject
(net.minidev.json.JSONObject jsonObject) Deprecated.Sets theverification
element.Methods inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSetRequest
get, get, getClaimNames, getEntries, toJSONString, toString
-
Constructor Details
-
VerifiedClaimsSetRequest
public VerifiedClaimsSetRequest()Deprecated.Creates a new empty OpenID Connect verified claims set request. -
VerifiedClaimsSetRequest
public VerifiedClaimsSetRequest(Collection<ClaimsSetRequest.Entry> entries, net.minidev.json.JSONObject verificationJSONObject) Deprecated.Creates a new OpenID Connect verified claims set request.- Parameters:
entries
- The request entries. Must not benull
.verificationJSONObject
- The verification JSON object,null
if not specified.
-
-
Method Details
-
getVerificationJSONObject
Deprecated.Gets theverification
element.- Returns:
- The
verification
JSON object,null
if not specified.
-
withVerificationJSONObject
Deprecated.Sets theverification
element.- Parameters:
jsonObject
- Theverification
JSON object,null
if not specified.- Returns:
- The updated verified claims set request.
-
add
Deprecated.Description copied from class:ClaimsSetRequest
Adds the specified claim to the request, using default settings. Shorthand forClaimsSetRequest.add(Entry)
.- Overrides:
add
in classClaimsSetRequest
- Parameters:
claimName
- The claim name. Must not benull
.- Returns:
- The updated claims set request.
-
add
Deprecated.Description copied from class:ClaimsSetRequest
Adds the specified claim to the request.- Overrides:
add
in classClaimsSetRequest
- Parameters:
entry
- The individual claim request. Must not benull
.- Returns:
- The updated claims set request.
-
delete
Deprecated.Description copied from class:ClaimsSetRequest
Deletes the specified claim from this request.- Overrides:
delete
in classClaimsSetRequest
- Parameters:
claimName
- The claim name. Must not benull
.langTag
- The associated language tag,null
if none.- Returns:
- The updated claims set request.
-
delete
Deprecated.Description copied from class:ClaimsSetRequest
Deletes the specified claim from this request, in all existing language tag variations if any.- Overrides:
delete
in classClaimsSetRequest
- Parameters:
claimName
- The claim name. Must not benull
.- Returns:
- The updated claims set request.
-
toJSONObject
Deprecated.Returns the JSON object representation of this verified claims set request.Example:
{ "verification": { "trust_framework": "eidas" }, "claims":{ "given_name": null, "family_name": null, "birthdate": null } }
- Overrides:
toJSONObject
in classClaimsSetRequest
- Returns:
- The JSON object, empty if no claims are specified.
-
parse
public static VerifiedClaimsSetRequest parse(net.minidev.json.JSONObject jsonObject) throws ParseException Deprecated.Parses an OpenID Connect verified claims set request from the specified JSON object representation.Example:
{ "verification": { "trust_framework": "eidas" }, "claims":{ "given_name": null, "family_name": null, "birthdate": null } }
- Parameters:
jsonObject
- The JSON object to parse. Must not benull
.- Returns:
- The verified claims set request.
- Throws:
ParseException
- If parsing failed.
-
parse
Deprecated.Parses an OpenID Connect verified claims set request from the specified JSON object string representation.Example:
{ "verification": { "trust_framework": "eidas" }, "claims":{ "given_name": null, "family_name": null, "birthdate": null } }
- Parameters:
json
- The JSON object string to parse. Must not benull
.- Returns:
- The verified claims set request.
- Throws:
ParseException
- If parsing failed.
-
VerifiedClaimsSetRequest
instead.