Class Attestation


  • public class Attestation
    extends Object
    Attestation.

    Related specifications:

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

      • Attestation

        public Attestation​(VouchType type,
                           ReferenceNumber referenceNumber,
                           PersonalNumber personalNumber,
                           SimpleDate dateOfIssuance,
                           SimpleDate dateOfExpiry,
                           Voucher voucher)
        Creates a new attestation instance.
        Parameters:
        type - The vouch type. Must not be null.
        referenceNumber - The reference number, null if not specified.
        personalNumber - The personal number, null if not specified.
        dateOfIssuance - The date of issuance, null if not specified.
        dateOfExpiry - The date of expiry, null if not specified.
        voucher - The voucher information, null if not specified.
    • Method Detail

      • getType

        public VouchType getType()
        Returns the vouch type.
        Returns:
        The vouch type.
      • getDateOfIssuance

        public SimpleDate getDateOfIssuance()
        Returns the date of issuance.
        Returns:
        The date of issuance, null if not specified.
      • getDateOfExpiry

        public SimpleDate getDateOfExpiry()
        Returns the date of expiry.
        Returns:
        The date of expiry, null if not specified.
      • getVoucher

        public Voucher getVoucher()
        Returns the voucher information.
        Returns:
        The voucher information, null if not specified.
      • toJSONObject

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

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