Modifier and Type | Field | Description |
---|---|---|
static String |
COUNTRY_CLAIM_NAME |
The country claim name.
|
static String |
FORMATTED_CLAIM_NAME |
The formatted claim name.
|
static String |
LOCALITY_CLAIM_NAME |
The locality claim name.
|
static String |
POSTAL_CODE_CLAIM_NAME |
The postal code claim name.
|
static String |
REGION_CLAIM_NAME |
The region claim name.
|
static String |
STREET_ADDRESS_CLAIM_NAME |
The street address claim name.
|
Constructor | Description |
---|---|
Address() |
Creates a new minimal (empty) UserInfo address claims set.
|
Address(net.minidev.json.JSONObject jsonObject) |
Creates a new UserInfo address claims set from the specified JSON
object.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getCountry() |
Gets the country name component.
|
String |
getFormatted() |
Gets the full mailing address, formatted for display or use with a
mailing label.
|
String |
getLocality() |
Gets the city or locality component.
|
String |
getPostalCode() |
Gets the zip code or postal code component.
|
String |
getRegion() |
Gets the state, province, prefecture or region component.
|
static Set<String> |
getStandardClaimNames() |
Gets the names of the standard UserInfo address claims.
|
String |
getStreetAddress() |
Gets the full street address component, which may include house
number, street name, PO BOX, and multi-line extended street address
information.
|
static Address |
parse(String json) |
Parses an address claims set from the specified JSON object string.
|
void |
setCountry(String country) |
Sets the country name component.
|
void |
setFormatted(String formatted) |
Sets the full mailing address, formatted for display or use with a
mailing label.
|
void |
setLocality(String locality) |
Sets the city or locality component.
|
void |
setPostalCode(String postalCode) |
Sets the zip code or postal code component.
|
void |
setRegion(String region) |
Sets the state, province, prefecture or region component.
|
void |
setStreetAddress(String streetAddress) |
Sets the full street address component, which may include house
number, street name, PO BOX, and multi-line extended street address
information.
|
getBooleanClaim, getClaim, getClaim, getDateClaim, getEmailClaim, getLangTaggedClaim, getNumberClaim, getStringClaim, getStringClaim, getStringListClaim, getURIClaim, getURLClaim, putAll, putAll, setClaim, setClaim, setDateClaim, setEmailClaim, setURIClaim, setURLClaim, toJSONObject, toJWTClaimsSet
public static final String FORMATTED_CLAIM_NAME
public static final String STREET_ADDRESS_CLAIM_NAME
public static final String LOCALITY_CLAIM_NAME
public static final String REGION_CLAIM_NAME
public static final String POSTAL_CODE_CLAIM_NAME
public static final String COUNTRY_CLAIM_NAME
public Address()
public Address(net.minidev.json.JSONObject jsonObject)
jsonObject
- The JSON object. Must not be null
.public static Set<String> getStandardClaimNames()
public void setFormatted(String formatted)
formatted
claim.formatted
- The full mailing address. null
if not
specified.public String getFormatted()
formatted
claim.null
if not specified.public void setStreetAddress(String streetAddress)
street_address
claim.streetAddress
- The full street address component. If
null
the claim will be removed.public String getStreetAddress()
street_address
claim.null
if not
specified.public void setLocality(String locality)
locality
claim.locality
- The city or locality component. If null
the
claim will be removed.public String getLocality()
locality
claim, with no language tag.null
if not
specified.public void setRegion(String region)
region
claim.region
- The state, province, prefecture or region component.
If null
the claim will be removed.public String getRegion()
region
claim.null
if not specified.public void setPostalCode(String postalCode)
postal_code
claim.postalCode
- The zip code or postal code component. If
null
the claim will be removed.public String getPostalCode()
postal_code
claim.null
if not
specified.public void setCountry(String country)
country
claim.country
- The country name component. If null
the claim
will be removed.public String getCountry()
country
claim.null
if not specified.public static Address parse(String json) throws ParseException
json
- The JSON object string to parse. Must not be
null
.ParseException
- If parsing failed.Copyright © 2019 Connect2id Ltd.. All rights reserved.