Class ElectronicRecordDetails


  • public class ElectronicRecordDetails
    extends Object
    Electronic record details.

    Related specifications:

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

      • ElectronicRecordDetails

        public ElectronicRecordDetails​(ElectronicRecordType type,
                                       PersonalNumber personalNumber,
                                       DateWithTimeZoneOffset createdAt,
                                       SimpleDate dateOfExpiry,
                                       ElectronicRecordSource source)
        Creates a new electronic record details instance.
        Parameters:
        type - The electronic record type. Must not be null.
        personalNumber - The personal number, null if not specified.
        createdAt - The time of creation, null if not specified.
        dateOfExpiry - The date of expiry, null if not specified.
        source - The electronic record source, null if not specified.
    • Method Detail

      • getDateOfExpiry

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

        public ElectronicRecordSource getSource()
        Returns the electronic record source.
        Returns:
        The electronic record source, null if not specified.
      • toJSONObject

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

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