Class ElectronicRecordDetails

java.lang.Object
com.nimbusds.openid.connect.sdk.assurance.evidences.ElectronicRecordDetails

public class ElectronicRecordDetails extends Object
Electronic record details.

Related specifications:

  • OpenID Connect for Identity Assurance 1.0
  • Constructor Details

    • ElectronicRecordDetails

      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 Details

    • getType

      Returns the electronic record type.
      Returns:
      The electronic record type.
    • getPersonalNumber

      Returns the personal number.
      Returns:
      The personal number, null if not specified.
    • getCreatedAt

      Returns the time of creation.
      Returns:
      The time of creation, null if not specified.
    • getDateOfExpiry

      Returns the date of expiry.
      Returns:
      The date of expiry, null if not specified.
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class 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.