Class ElectronicRecordSource
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.ElectronicRecordSource
-
public class ElectronicRecordSource extends Object
Electronic record source.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.1.2.
-
-
Constructor Summary
Constructors Constructor Description ElectronicRecordSource(Name name, Address address, CountryCode countryCode, Jurisdiction jurisdiction)Creates a new electronic record source.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)AddressgetAddress()Returns the address elements.CountryCodegetCountryCode()Returns the country code.JurisdictiongetJurisdiction()Returns the jurisdiction.NamegetName()Returns the name.inthashCode()static ElectronicRecordSourceparse(net.minidev.json.JSONObject jsonObject)Parses an electronic record source from the specified JSON object.net.minidev.json.JSONObjecttoJSONObject()Returns a JSON object representation.
-
-
-
Constructor Detail
-
ElectronicRecordSource
public ElectronicRecordSource(Name name, Address address, CountryCode countryCode, Jurisdiction jurisdiction)
Creates a new electronic record source.- Parameters:
name- The source name,nullif not specified.address- The source address elements,nullif not specified.countryCode- The source country code,nullif not specified.jurisdiction- The source jurisdiction,nullif not specified.
-
-
Method Detail
-
parse
public static ElectronicRecordSource parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses an electronic record source from the specified JSON object.- Parameters:
jsonObject- The JSON object. Must not benull.- Returns:
- The electronic record source.
- Throws:
ParseException- If parsing failed.
-
getName
public Name getName()
Returns the name.- Returns:
- The name,
nullif not specified.
-
getAddress
public Address getAddress()
Returns the address elements.- Returns:
- The address elements,
nullif not specified.
-
getCountryCode
public CountryCode getCountryCode()
Returns the country code.- Returns:
- The country code,
nullif not specified.
-
getJurisdiction
public Jurisdiction getJurisdiction()
Returns the jurisdiction.- Returns:
- The jurisdiction,
nullif not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns a JSON object representation.- Returns:
- The JSON object.
-
-