java.lang.Object
io.micronaut.security.oauth2.endpoint.token.response.Address

@Introspected public class Address extends Object
Representation of an Address Claim which represents a physical mailing address.
Author:
Sergio del Amo
See Also:
  • Field Details

  • Constructor Details

    • Address

      public Address(Map<String,Object> map)
      Parameters:
      map - The address data
  • Method Details

    • getStreetAddress

      @Nullable public @Nullable String getStreetAddress()
      Returns:
      Full street address component, which MAY include house number, street name, Post Office Box, and multi-line extended street address information.
    • setStreetAddress

      public void setStreetAddress(@Nullable @Nullable String streetAddress)
      Sets the full street address.
      Parameters:
      streetAddress - Street address.
    • getLocality

      @Nullable public @Nullable String getLocality()
      Returns:
      City or locality component.
    • setLocality

      public void setLocality(@Nullable @Nullable String locality)
      Address's locality.
      Parameters:
      locality - Locality
    • getRegion

      @Nullable public @Nullable String getRegion()
      Returns:
      State, province, prefecture or region component.
    • setRegion

      public void setRegion(@Nullable @Nullable String region)
      Address' region.
      Parameters:
      region - Region.
    • getPostalCode

      @Nullable public @Nullable String getPostalCode()
      Returns:
      Zip code or postal code component.
    • setPostalCode

      public void setPostalCode(@Nullable @Nullable String postalCode)
      Address's postal code.
      Parameters:
      postalCode - Postal code.
    • getCountry

      @Nullable public @Nullable String getCountry()
      Returns:
      Country name component.
    • setCountry

      public void setCountry(@Nullable @Nullable String country)
      Address's country.
      Parameters:
      country - country.
    • getFormatted

      @Nullable public @Nullable String getFormatted()
      Returns:
      Full mailing address, formatted for display or use on a mailing label.
    • setFormatted

      public void setFormatted(@Nullable @Nullable String formatted)
      Parameters:
      formatted - Full mailing address, formatted for display or use on a mailing label.