Class Birthplace
java.lang.Object
com.nimbusds.openid.connect.sdk.claims.ClaimsSet
com.nimbusds.openid.connect.sdk.assurance.claims.Birthplace
- All Implemented Interfaces:
net.minidev.json.JSONAware
Birthplace claims set, serialisable to a JSON object.
Related specifications:
- OpenID Connect for Identity Assurance 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The country code claim name.static final String
The locality claim name.static final String
The region claim name.Fields inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSet
AUD_CLAIM_NAME, claims, ISS_CLAIM_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionBirthplace
(CountryCode countryCode, String region, String locality) Creates a new birthplace claims set.Birthplace
(net.minidev.json.JSONObject jsonObject) Creates a new birthplace claims set from the specified JSON object. -
Method Summary
Modifier and TypeMethodDescriptionGets the country code.Gets the city or other locality.Gets the tate, province, prefecture, or region component.Gets the names of the standard birthplace claims.void
setCountry
(CountryCode country) Sets the country.void
setLocality
(String locality) Sets the city or other locality.void
Sets the tate, province, prefecture, or region component.Methods inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSet
equals, getAudience, getBooleanClaim, getClaim, getClaim, getDateClaim, getIssuer, getJSONArrayClaim, getJSONObjectClaim, getLangTaggedClaim, getNumberClaim, getStringClaim, getStringClaim, getStringListClaim, getURIClaim, getURLClaim, hashCode, putAll, putAll, setAudience, setAudience, setClaim, setClaim, setDateClaim, setIssuer, setURIClaim, setURLClaim, toJSONObject, toJSONString, toJWTClaimsSet, toString
-
Field Details
-
COUNTRY_CLAIM_NAME
The country code claim name.- See Also:
-
REGION_CLAIM_NAME
The region claim name.- See Also:
-
LOCALITY_CLAIM_NAME
The locality claim name.- See Also:
-
-
Constructor Details
-
Birthplace
Creates a new birthplace claims set.- Parameters:
countryCode
- The country code, as ISO3166-1 or ISO3166-3 code,null
if not specified.region
- State, province, prefecture, or region component,null
if not specified.locality
- City or other locality,null
if not specified.
-
Birthplace
Creates a new birthplace claims set from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.
-
-
Method Details
-
getStandardClaimNames
Gets the names of the standard birthplace claims.- Returns:
- The names of the standard birthplace claims (read-only set).
-
getCountry
Gets the country code.- Returns:
- The country code,
null
if not specified or illegal ISO3166-1 or ISO3166-3 country code.
-
setCountry
Sets the country.- Parameters:
country
- The country,null
if not specified.
-
getRegion
Gets the tate, province, prefecture, or region component.- Returns:
- The state, province, prefecture, or region component,
null
if not specified.
-
setRegion
Sets the tate, province, prefecture, or region component.- Parameters:
region
- The state, province, prefecture, or region component,null
if not specified.
-
getLocality
Gets the city or other locality.- Returns:
- The city or other locality,
null
if not specified.
-
setLocality
Sets the city or other locality.- Parameters:
locality
- The city or other locality,null
if not specified.
-