Class DefaultAddressStandardClaim
- java.lang.Object
-
- org.springframework.security.oauth2.core.oidc.DefaultAddressStandardClaim
-
- All Implemented Interfaces:
AddressStandardClaim
public final class DefaultAddressStandardClaim extends java.lang.Object implements AddressStandardClaim
The default implementation of anAddress Claim
.- Since:
- 5.0
- See Also:
AddressStandardClaim
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultAddressStandardClaim.Builder
A builder forDefaultAddressStandardClaim
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getCountry()
Returns the country.java.lang.String
getFormatted()
Returns the full mailing address, formatted for display.java.lang.String
getLocality()
Returns the city or locality.java.lang.String
getPostalCode()
Returns the zip code or postal code.java.lang.String
getRegion()
Returns the state, province, prefecture, or region.java.lang.String
getStreetAddress()
Returns the full street address, which may include house number, street name, P.O.int
hashCode()
-
-
-
Method Detail
-
getFormatted
public java.lang.String getFormatted()
Description copied from interface:AddressStandardClaim
Returns the full mailing address, formatted for display.- Specified by:
getFormatted
in interfaceAddressStandardClaim
- Returns:
- the full mailing address
-
getStreetAddress
public java.lang.String getStreetAddress()
Description copied from interface:AddressStandardClaim
Returns the full street address, which may include house number, street name, P.O. Box, etc.- Specified by:
getStreetAddress
in interfaceAddressStandardClaim
- Returns:
- the full street address
-
getLocality
public java.lang.String getLocality()
Description copied from interface:AddressStandardClaim
Returns the city or locality.- Specified by:
getLocality
in interfaceAddressStandardClaim
- Returns:
- the city or locality
-
getRegion
public java.lang.String getRegion()
Description copied from interface:AddressStandardClaim
Returns the state, province, prefecture, or region.- Specified by:
getRegion
in interfaceAddressStandardClaim
- Returns:
- the state, province, prefecture, or region
-
getPostalCode
public java.lang.String getPostalCode()
Description copied from interface:AddressStandardClaim
Returns the zip code or postal code.- Specified by:
getPostalCode
in interfaceAddressStandardClaim
- Returns:
- the zip code or postal code
-
getCountry
public java.lang.String getCountry()
Description copied from interface:AddressStandardClaim
Returns the country.- Specified by:
getCountry
in interfaceAddressStandardClaim
- Returns:
- the country
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-