Class ValidationMethod


  • @Immutable
    public final class ValidationMethod
    extends Object
    Validation method establishing the authenticity of an evidence, such as a document, electronic record, vouch, utility bill or electronic signature.

    Related specifications:

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

      • ValidationMethod

        public ValidationMethod​(ValidationMethodType type,
                                Policy policy,
                                Procedure procedure,
                                Status status)
        Creates a new validation method.
        Parameters:
        type - The type. Must not be null.
        policy - The policy, null if not specified.
        procedure - The procedure, null if not specified.
        status - The status, null if not specified.
    • Method Detail

      • toJSONObject

        public net.minidev.json.JSONObject toJSONObject()
        Returns a JSON object representation of this validation method.
        Returns:
        The JSON object.
      • parse

        public static ValidationMethod parse​(net.minidev.json.JSONObject jsonObject)
                                      throws ParseException
        Parses a validation method from the specified JSON object.
        Parameters:
        jsonObject - The JSON object. Must not be null.
        Returns:
        The validation method.
        Throws:
        ParseException - If parsing failed.
      • getPolicy

        public Policy getPolicy()
        Returns the policy.
        Returns:
        The policy, null if not specified.
      • getProcedure

        public Procedure getProcedure()
        Returns the procedure.
        Returns:
        The procedure, null if not specified.
      • getStatus

        public Status getStatus()
        Returns the status.
        Returns:
        The status, null if not specified.