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, section 5.1.1.2.
-
-
Constructor Summary
Constructors Constructor Description ElectronicRecordDetails(ElectronicRecordType type, PersonalNumber personalNumber, DateWithTimeZoneOffset createdAt, SimpleDate dateOfExpiry, ElectronicRecordSource source)Creates a new electronic record details instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DateWithTimeZoneOffsetgetCreatedAt()Returns the time of creation.SimpleDategetDateOfExpiry()Returns the date of expiry.PersonalNumbergetPersonalNumber()Returns the personal number.ElectronicRecordSourcegetSource()Returns the electronic record source.ElectronicRecordTypegetType()Returns the electronic record type.inthashCode()static ElectronicRecordDetailsparse(net.minidev.json.JSONObject jsonObject)Parses an electronic record details instance from the specified JSON object.net.minidev.json.JSONObjecttoJSONObject()Returns a JSON object representation of this electronic record details instance.
-
-
-
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 benull.personalNumber- The personal number,nullif not specified.createdAt- The time of creation,nullif not specified.dateOfExpiry- The date of expiry,nullif not specified.source- The electronic record source,nullif not specified.
-
-
Method Detail
-
getType
public ElectronicRecordType getType()
Returns the electronic record type.- Returns:
- The electronic record type.
-
getPersonalNumber
public PersonalNumber getPersonalNumber()
Returns the personal number.- Returns:
- The personal number,
nullif not specified.
-
getCreatedAt
public DateWithTimeZoneOffset getCreatedAt()
Returns the time of creation.- Returns:
- The time of creation,
nullif not specified.
-
getDateOfExpiry
public SimpleDate getDateOfExpiry()
Returns the date of expiry.- Returns:
- The date of expiry,
nullif not specified.
-
getSource
public ElectronicRecordSource getSource()
Returns the electronic record source.- Returns:
- The electronic record source,
nullif 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 benull.- Returns:
- The electronic record details instance.
- Throws:
ParseException- If parsing failed.
-
-