Class DocumentIssuer
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.DocumentIssuer
-
public class DocumentIssuer extends Object
Document issuer.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.1.1.
-
-
Constructor Summary
Constructors Constructor Description DocumentIssuer(Name name, Address address, CountryCode countryCode, Jurisdiction jurisdiction)
Creates a new document issuer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Address
getAddress()
Returns the address elements.CountryCode
getCountryCode()
Returns the country code.Jurisdiction
getJurisdiction()
Returns the jurisdiction.Name
getName()
Returns the name.int
hashCode()
static DocumentIssuer
parse(net.minidev.json.JSONObject jsonObject)
Parses a document issuer from the specified JSON object.net.minidev.json.JSONObject
toJSONObject()
Returns a JSON object representation.
-
-
-
Constructor Detail
-
DocumentIssuer
public DocumentIssuer(Name name, Address address, CountryCode countryCode, Jurisdiction jurisdiction)
Creates a new document issuer.- Parameters:
name
- The issuer name,null
if not specified.address
- The issuer address elements,null
if not specified.countryCode
- The issuer country code,null
if not specified.jurisdiction
- The issuer jurisdiction,null
if not specified.
-
-
Method Detail
-
parse
public static DocumentIssuer parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses a document issuer from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The document issuer.
- Throws:
ParseException
- If parsing failed.
-
getName
public Name getName()
Returns the name.- Returns:
- The name,
null
if not specified.
-
getAddress
public Address getAddress()
Returns the address elements.- Returns:
- The address elements,
null
if not specified.
-
getCountryCode
public CountryCode getCountryCode()
Returns the country code.- Returns:
- The country code,
null
if not specified.
-
getJurisdiction
public Jurisdiction getJurisdiction()
Returns the jurisdiction.- Returns:
- The jurisdiction,
null
if not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns a JSON object representation.- Returns:
- The JSON object.
-
-