Class VerifiedClaimsSet
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.claims.VerifiedClaimsSet
-
- All Implemented Interfaces:
net.minidev.json.JSONAware
public class VerifiedClaimsSet extends Object implements net.minidev.json.JSONAware
Verified claims set.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 4.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLAIMS_ELEMENTThe claims element.static StringVERIFICATION_ELEMENTThe verification element.
-
Constructor Summary
Constructors Constructor Description VerifiedClaimsSet(IdentityVerification verification, ClaimsSet claims)Creates a new verified claims set.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PersonClaimsgetClaimsSet()Returns the verified claims.IdentityVerificationgetVerification()Returns the identity verification.static VerifiedClaimsSetparse(net.minidev.json.JSONObject jsonObject)Parses a verified claims set from the specified JSON object.net.minidev.json.JSONObjecttoJSONObject()Returns a JSON object representation of this verified claims set.StringtoJSONString()
-
-
-
Field Detail
-
VERIFICATION_ELEMENT
public static final String VERIFICATION_ELEMENT
The verification element.- See Also:
- Constant Field Values
-
CLAIMS_ELEMENT
public static final String CLAIMS_ELEMENT
The claims element.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VerifiedClaimsSet
public VerifiedClaimsSet(IdentityVerification verification, ClaimsSet claims)
Creates a new verified claims set.- Parameters:
verification- The identity verification. Must not benull.claims- The verified claims. Must not benull.
-
-
Method Detail
-
getVerification
public IdentityVerification getVerification()
Returns the identity verification.- Returns:
- The identity verification.
-
getClaimsSet
public PersonClaims getClaimsSet()
Returns the verified claims.- Returns:
- The verified claims wrapped in a person claims object for convenience.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns a JSON object representation of this verified claims set.- Returns:
- The JSON object.
-
toJSONString
public String toJSONString()
- Specified by:
toJSONStringin interfacenet.minidev.json.JSONAware
-
parse
public static VerifiedClaimsSet parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses a verified claims set from the specified JSON object.- Parameters:
jsonObject- The JSON object to parse.- Returns:
- The verifier claims set.
- Throws:
ParseException- If parsing failed.
-
-