Class IdentityVerification

  • All Implemented Interfaces:
    net.minidev.json.JSONAware

    @Immutable
    public final class IdentityVerification
    extends Object
    implements net.minidev.json.JSONAware
    Identity verification.

    Related specifications:

    • OpenID Connect for Identity Assurance 1.0, section 4.1.
    • Constructor Detail

      • IdentityVerification

        public IdentityVerification​(IdentityTrustFramework trustFramework,
                                    DateWithTimeZoneOffset time,
                                    VerificationProcess verificationProcess,
                                    IdentityEvidence evidence)
        Creates a new identity verification with a single evidence.
        Parameters:
        trustFramework - The trust framework. Must not be null.
        time - The verification timestamp if required by the trust framework, null if not required.
        verificationProcess - The verification process reference if required by the trust framework, null if not required.
        evidence - The identity evidence, null if not specified.
      • IdentityVerification

        public IdentityVerification​(IdentityTrustFramework trustFramework,
                                    DateWithTimeZoneOffset time,
                                    VerificationProcess verificationProcess,
                                    List<IdentityEvidence> evidence)
        Creates a new identity verification
        Parameters:
        trustFramework - The trust framework. Must not be null.
        time - The verification timestamp if required by the trust framework, null if not required.
        verificationProcess - The verification process reference if required by the trust framework, null if not required.
        evidence - The identity evidences, null if not specified.
    • Method Detail

      • getVerificationTime

        public DateWithTimeZoneOffset getVerificationTime()
        Returns the verification timestamp.
        Returns:
        The verification timestamp if required by the trust framework, null if not specified.
      • getVerificationProcess

        public VerificationProcess getVerificationProcess()
        Returns the verification process reference.
        Returns:
        The verification process reference if required by the trust framework, null if not specified.
      • toJSONObject

        public net.minidev.json.JSONObject toJSONObject()
        Returns a JSON object representation of this identity verification.
        Returns:
        The JSON object.
      • toJSONString

        public String toJSONString()
        Specified by:
        toJSONString in interface net.minidev.json.JSONAware
      • parse

        public static IdentityVerification parse​(net.minidev.json.JSONObject jsonObject)
                                          throws ParseException
        Parses an identity verification from the specified JSON object.
        Parameters:
        jsonObject - The JSON object. Must not be null.
        Returns:
        The identity verification.
        Throws:
        ParseException - If parsing failed.