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
@Immutable public class VerifiedClaimsSetRequest extends ClaimsSetRequest
OpenID Connect verified claims set request, intended to represent theverified_claimssub-element within auserinfoorid_tokenelement in aclaimsrequest parameter.Example:
{ "verification": { "trust_framework": "eidas_ial_high" }, "claims":{ "given_name": null, "family_name": null, "birthdate": null } }Related specifications:
- OpenID Connect Core 1.0, section 5.5.
- 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
Constructors Constructor Description VerifiedClaimsSetRequest()Creates a new empty OpenID Connect verified claims set request.VerifiedClaimsSetRequest(Collection<ClaimsSetRequest.Entry> entries, net.minidev.json.JSONObject verificationJSONObject)Creates a new OpenID Connect verified claims set request.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VerifiedClaimsSetRequestadd(ClaimsSetRequest.Entry entry)Adds the specified claim to the request.VerifiedClaimsSetRequestadd(String claimName)Adds the specified claim to the request, using default settings.VerifiedClaimsSetRequestdelete(String claimName)Deletes the specified claim from this request, in all existing language tag variations if any.VerifiedClaimsSetRequestdelete(String claimName, com.nimbusds.langtag.LangTag langTag)Deletes the specified claim from this request.net.minidev.json.JSONObjectgetVerificationJSONObject()Gets theverificationelement.static VerifiedClaimsSetRequestparse(String json)Parses an OpenID Connect verified claims set request from the specified JSON object string representation.static VerifiedClaimsSetRequestparse(net.minidev.json.JSONObject jsonObject)Parses an OpenID Connect verified claims set request from the specified JSON object representation.net.minidev.json.JSONObjecttoJSONObject()Returns the JSON object representation of this verified claims set request.VerifiedClaimsSetRequestwithVerificationJSONObject(net.minidev.json.JSONObject jsonObject)Sets theverificationelement.-
Methods inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSetRequest
get, getClaimNames, getEntries, toJSONString, toString
-
-
-
-
Constructor Detail
-
VerifiedClaimsSetRequest
public VerifiedClaimsSetRequest()
Creates a new empty OpenID Connect verified claims set request.
-
VerifiedClaimsSetRequest
public VerifiedClaimsSetRequest(Collection<ClaimsSetRequest.Entry> entries, net.minidev.json.JSONObject verificationJSONObject)
Creates a new OpenID Connect verified claims set request.- Parameters:
entries- The request entries. Must not benull.verificationJSONObject- The verification JSON object,nullif not specified.
-
-
Method Detail
-
getVerificationJSONObject
public net.minidev.json.JSONObject getVerificationJSONObject()
Gets theverificationelement.- Returns:
- The
verificationJSON object,nullif not specified.
-
withVerificationJSONObject
public VerifiedClaimsSetRequest withVerificationJSONObject(net.minidev.json.JSONObject jsonObject)
Sets theverificationelement.- Parameters:
jsonObject- TheverificationJSON object,nullif not specified.- Returns:
- The updated verified claims set request.
-
add
public VerifiedClaimsSetRequest add(String claimName)
Description copied from class:ClaimsSetRequestAdds the specified claim to the request, using default settings. Shorthand forClaimsSetRequest.add(Entry).- Overrides:
addin classClaimsSetRequest- Parameters:
claimName- The claim name. Must not benull.- Returns:
- The updated claims set request.
-
add
public VerifiedClaimsSetRequest add(ClaimsSetRequest.Entry entry)
Description copied from class:ClaimsSetRequestAdds the specified claim to the request.- Overrides:
addin classClaimsSetRequest- Parameters:
entry- The individual claim request. Must not benull.- Returns:
- The updated claims set request.
-
delete
public VerifiedClaimsSetRequest delete(String claimName, com.nimbusds.langtag.LangTag langTag)
Description copied from class:ClaimsSetRequestDeletes the specified claim from this request.- Overrides:
deletein classClaimsSetRequest- Parameters:
claimName- The claim name. Must not benull.langTag- The associated language tag,nullif none.- Returns:
- The updated claims set request.
-
delete
public VerifiedClaimsSetRequest delete(String claimName)
Description copied from class:ClaimsSetRequestDeletes the specified claim from this request, in all existing language tag variations if any.- Overrides:
deletein classClaimsSetRequest- Parameters:
claimName- The claim name. Must not benull.- Returns:
- The updated claims set request.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns the JSON object representation of this verified claims set request.Example:
{ "verification": { "trust_framework": "eidas_ial_high" }, "claims":{ "given_name": null, "family_name": null, "birthdate": null } }- Overrides:
toJSONObjectin classClaimsSetRequest- Returns:
- The JSON object, empty if no claims are specified.
-
parse
public static VerifiedClaimsSetRequest parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses an OpenID Connect verified claims set request from the specified JSON object representation.Example:
{ "verification": { "trust_framework": "eidas_ial_high" }, "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
public static VerifiedClaimsSetRequest parse(String json) throws ParseException
Parses an OpenID Connect verified claims set request from the specified JSON object string representation.Example:
{ "verification": { "trust_framework": "eidas_ial_high" }, "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.
-
-