Class MinimalVerificationSpec
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.request.MinimalVerificationSpec
-
- All Implemented Interfaces:
VerificationSpec
@Immutable public class MinimalVerificationSpec extends Object implements 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, section 6.
-
-
Field Summary
Fields Modifier and Type Field Description protected net.minidev.json.JSONObject
jsonObject
The underlying JSON object.
-
Constructor Summary
Constructors Modifier Constructor Description MinimalVerificationSpec()
Creates 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MinimalVerificationSpec
parse(net.minidev.json.JSONObject jsonObject)
Parses a verification spec from the specified JSON object representation.net.minidev.json.JSONObject
toJSONObject()
Returns a JSON object representation of the verification element.
-
-
-
Field Detail
-
jsonObject
protected final net.minidev.json.JSONObject jsonObject
The underlying JSON object.
-
-
Constructor Detail
-
MinimalVerificationSpec
protected MinimalVerificationSpec(net.minidev.json.JSONObject jsonObject)
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
public MinimalVerificationSpec(IdentityTrustFramework trustFramework)
Creates a new minimal verification spec with a preferred trust framework.- Parameters:
trustFramework
- The trust framework,null
if not specified.
-
MinimalVerificationSpec
public MinimalVerificationSpec(List<IdentityTrustFramework> trustFrameworks)
Creates a new minimal verification spec with a list of preferred trust frameworks.- Parameters:
trustFrameworks
- The trust frameworks,null
if not specified.
-
-
Method Detail
-
toJSONObject
public net.minidev.json.JSONObject 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.
-
-