Class Address
java.lang.Object
io.micronaut.security.oauth2.endpoint.token.response.Address
Representation of an Address Claim which represents a physical mailing address.
- Author:
- Sergio del Amo
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
void
setCountry
(@Nullable String country) Address's country.void
setFormatted
(@Nullable String formatted) void
setLocality
(@Nullable String locality) Address's locality.void
setPostalCode
(@Nullable String postalCode) Address's postal code.void
Address' region.void
setStreetAddress
(@Nullable String streetAddress) Sets the full street address.
-
Field Details
-
COUNTRY
- See Also:
-
STREET_ADDRESS
- See Also:
-
LOCALITY
- See Also:
-
POSTAL_CODE
- See Also:
-
REGION
- See Also:
-
-
Constructor Details
-
Address
- Parameters:
map
- The address data
-
-
Method Details
-
getStreetAddress
- Returns:
- Full street address component, which MAY include house number, street name, Post Office Box, and multi-line extended street address information.
-
setStreetAddress
Sets the full street address.- Parameters:
streetAddress
- Street address.
-
getLocality
- Returns:
- City or locality component.
-
setLocality
Address's locality.- Parameters:
locality
- Locality
-
getRegion
- Returns:
- State, province, prefecture or region component.
-
setRegion
Address' region.- Parameters:
region
- Region.
-
getPostalCode
- Returns:
- Zip code or postal code component.
-
setPostalCode
Address's postal code.- Parameters:
postalCode
- Postal code.
-
getCountry
- Returns:
- Country name component.
-
setCountry
Address's country.- Parameters:
country
- country.
-
getFormatted
- Returns:
- Full mailing address, formatted for display or use on a mailing label.
-
setFormatted
- Parameters:
formatted
- Full mailing address, formatted for display or use on a mailing label.
-