Class DefaultAddressStandardClaim.Builder
java.lang.Object
org.springframework.security.oauth2.core.oidc.DefaultAddressStandardClaim.Builder
- Enclosing class:
DefaultAddressStandardClaim
A builder for
DefaultAddressStandardClaim.- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newDefaultAddressStandardClaim.Sets the country.Sets the full mailing address, formatted for display.Sets the city or locality.postalCode(@Nullable String postalCode) Sets the zip code or postal code.Sets the state, province, prefecture, or region.streetAddress(@Nullable String streetAddress) Sets the full street address, which may include house number, street name, P.O.
-
Constructor Details
-
Builder
public Builder()Default constructor. -
Builder
-
-
Method Details
-
formatted
Sets the full mailing address, formatted for display.- Parameters:
formatted- the full mailing address, may benull- Returns:
- the
DefaultAddressStandardClaim.Builder
-
streetAddress
Sets the full street address, which may include house number, street name, P.O. Box, etc.- Parameters:
streetAddress- the full street address, may benull- Returns:
- the
DefaultAddressStandardClaim.Builder
-
locality
Sets the city or locality.- Parameters:
locality- the city or locality, may benull- Returns:
- the
DefaultAddressStandardClaim.Builder
-
region
Sets the state, province, prefecture, or region.- Parameters:
region- the state, province, prefecture, or region, may benull- Returns:
- the
DefaultAddressStandardClaim.Builder
-
postalCode
Sets the zip code or postal code.- Parameters:
postalCode- the zip code or postal code, may benull- Returns:
- the
DefaultAddressStandardClaim.Builder
-
country
Sets the country.- Parameters:
country- the country, may benull- Returns:
- the
DefaultAddressStandardClaim.Builder
-
build
Builds a newDefaultAddressStandardClaim.- Returns:
- a
AddressStandardClaim
-