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 boolean
equals(Object o)
DateWithTimeZoneOffset
getCreatedAt()
Returns the time of creation.SimpleDate
getDateOfExpiry()
Returns the date of expiry.PersonalNumber
getPersonalNumber()
Returns the personal number.ElectronicRecordSource
getSource()
Returns the electronic record source.ElectronicRecordType
getType()
Returns the electronic record type.int
hashCode()
static ElectronicRecordDetails
parse(net.minidev.json.JSONObject jsonObject)
Parses an electronic record details instance from the specified JSON object.net.minidev.json.JSONObject
toJSONObject()
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,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
-
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,
null
if not specified.
-
getCreatedAt
public DateWithTimeZoneOffset getCreatedAt()
Returns the time of creation.- Returns:
- The time of creation,
null
if not specified.
-
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 benull
.- Returns:
- The electronic record details instance.
- Throws:
ParseException
- If parsing failed.
-
-