Class MinimalVerificationSpec
java.lang.Object
com.nimbusds.openid.connect.sdk.assurance.request.MinimalVerificationSpec
- All Implemented Interfaces:
VerificationSpec
Minimal verification spec. Allows setting of a preferred trust framework for
the identity verification. Can be extended with additional setters.
Default verification example:
{ "trust_framework": null }
Verification example with preferred trust framework:
{ "trust_framework": { "value" : "eidas" } }
Verification example with list of two preferred trust frameworks:
{ "trust_framework": { "values" : [ "eidas", "de_aml" ] } }
Related specifications:
- OpenID Connect for Identity Assurance 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minidev.json.JSONObject
The underlying JSON object. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a new minimal verification spec.MinimalVerificationSpec
(IdentityTrustFramework trustFramework) Creates a new minimal verification spec with a preferred trust framework.MinimalVerificationSpec
(List<IdentityTrustFramework> trustFrameworks) Creates a new minimal verification spec with a list of preferred trust frameworks.protected
MinimalVerificationSpec
(net.minidev.json.JSONObject jsonObject) Creates a new minimal verification spec with the specified JSON object. -
Method Summary
Modifier and TypeMethodDescriptionstatic MinimalVerificationSpec
parse
(net.minidev.json.JSONObject jsonObject) Parses a verification spec from the specified JSON object representation.net.minidev.json.JSONObject
Returns a JSON object representation of the verification element.
-
Field Details
-
jsonObject
The underlying JSON object.
-
-
Constructor Details
-
MinimalVerificationSpec
Creates a new minimal verification spec with the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.
-
MinimalVerificationSpec
public MinimalVerificationSpec()Creates a new minimal verification spec. -
MinimalVerificationSpec
Creates a new minimal verification spec with a preferred trust framework.- Parameters:
trustFramework
- The trust framework,null
if not specified.
-
MinimalVerificationSpec
Creates a new minimal verification spec with a list of preferred trust frameworks.- Parameters:
trustFrameworks
- The trust frameworks,null
if not specified.
-
-
Method Details
-
toJSONObject
Description copied from interface:VerificationSpec
Returns a JSON object representation of the verification element.Example:
{ "trust_framework": null, "time": null, "evidence": [ { "type": { "value": "document" }, "method": null, "document_details": { "type": null } } ] }
- Specified by:
toJSONObject
in interfaceVerificationSpec
- Returns:
- The JSON object.
-
parse
public static MinimalVerificationSpec parse(net.minidev.json.JSONObject jsonObject) throws ParseException Parses a verification spec from the specified JSON object representation.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The verification spec.
- Throws:
ParseException
- If parsing failed.
-