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 StringThe country code claim name.static final StringThe locality claim name.static final StringThe 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.voidsetCountry(CountryCode country) Sets the country.voidsetLocality(String locality) Sets the city or other locality.voidSets 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,nullif not specified.region- State, province, prefecture, or region component,nullif not specified.locality- City or other locality,nullif 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,
nullif not specified or illegal ISO3166-1 or ISO3166-3 country code.
-
setCountry
Sets the country.- Parameters:
country- The country,nullif not specified.
-
getRegion
Gets the tate, province, prefecture, or region component.- Returns:
- The state, province, prefecture, or region component,
nullif not specified.
-
setRegion
Sets the tate, province, prefecture, or region component.- Parameters:
region- The state, province, prefecture, or region component,nullif not specified.
-
getLocality
Gets the city or other locality.- Returns:
- The city or other locality,
nullif not specified.
-
setLocality
Sets the city or other locality.- Parameters:
locality- The city or other locality,nullif not specified.
-