Class JwtUtil.Address

java.lang.Object
io.helidon.security.jwt.JwtUtil.Address
Enclosing class:
JwtUtil

public static class JwtUtil.Address extends Object
Address class representing the JSON object for address.
  • Constructor Details

    • Address

      public Address(JsonObject jsonObject)
      Create an address object from json representation.
      Parameters:
      jsonObject - object with expected keys
  • Method Details

    • getFormatted

      public Optional<String> getFormatted()
      Full formatted mailing address.
      Returns:
      formatted address
    • getStreetAddress

      public Optional<String> getStreetAddress()
      Street address.
      Returns:
      street address
    • getLocality

      public Optional<String> getLocality()
      Locality or city.
      Returns:
      locality
    • getRegion

      public Optional<String> getRegion()
      State, province, prefecture, or region.
      Returns:
      region
    • getPostalCode

      public Optional<String> getPostalCode()
      Postal code.
      Returns:
      postal code
    • getCountry

      public Optional<String> getCountry()
      Country.
      Returns:
      country
    • jsonObject

      public JsonObject jsonObject()
      Create a json representation of this address.
      Returns:
      Address as a Json object