Class 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 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 be null.
      • 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 interface VerificationSpec
        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 be null.
        Returns:
        The verification spec.
        Throws:
        ParseException - If parsing failed.