Class Address
Object
se.curity.identityserver.sdk.attribute.MapAttributeValue
se.curity.identityserver.sdk.attribute.scim.v2.ComplexAttributeValue<M>
se.curity.identityserver.sdk.attribute.scim.v2.multivalued.MultiValuedAttributeValue<Address>
se.curity.identityserver.sdk.attribute.scim.v2.Address
- All Implemented Interfaces:
Iterable<Attribute>,AttributeContainer<MapAttributeValue>,AttributeOrAttributeValue<AttributeValue>,AttributeValue
An object representing the complex attribute Address in SCIM Core Schema RFC7643
A physical mailing address for this user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class se.curity.identityserver.sdk.attribute.scim.v2.multivalued.MultiValuedAttributeValue
DISPLAY, REF, TYPE, TYPE_HOME, TYPE_OTHER, TYPE_WORK, VALUEFields inherited from class se.curity.identityserver.sdk.attribute.scim.v2.ComplexAttributeValue
PRIMARY -
Method Summary
Modifier and TypeMethodDescriptionprotected AddresscopyOf(MapAttributeValue other) Copies the provided map attribute value.The country name component.The full mailing address, formatted for display or use with a mailing label.The city or locality component.The zip code or postal code component.The state or region component.The full street address component, which may include house number, street name, P.O.static Addressstatic AddressCreate anAddresswith the FORMATTED attribute set.static AddressCreate anAddresswith the FORMATTED and PRIMARY attributes set.static Addressof(MapAttributeValue attributes) Create anAddress.withCountry(String country) Create a new Address object, with the COUNTRY attribute setwithLocality(String locality) Create a new Address object, with the LOCALITY attribute setwithPostalCode(String postalCode) Create a new Address object, with the POSTAL_CODE attribute setwithStreetAddress(String streetAddress) Create a new Address object, with the LOCALITY attribute setMethods inherited from class se.curity.identityserver.sdk.attribute.scim.v2.multivalued.MultiValuedAttributeValue
getDisplay, getRef, getSignificantValue, getType, with, withDisplay, withRef, withTypeMethods inherited from class se.curity.identityserver.sdk.attribute.scim.v2.ComplexAttributeValue
isPrimaryMethods inherited from class se.curity.identityserver.sdk.attribute.MapAttributeValue
append, append, delete, equals, get, get, getAll, getAttributesByName, getMandatory, getValue, getValueWithAuthorities, getValueWithMetadata, hashCode, isEmpty, iterator, keys, map, map, map, mapEntries, mapNonRecursive, nullOrOfType, of, of, removeAttributes, removeNullAttributeValues, retainAttributes, size, stream, toString, withMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface se.curity.identityserver.sdk.attribute.AttributeContainer
contains, contains, getOptionalValue, getOptionalValue, removeAttribute, retainAttributeMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
FORMATTED
- See Also:
-
COUNTRY
- See Also:
-
POSTAL_CODE
- See Also:
-
LOCALITY
- See Also:
-
STREET_ADDRESS
- See Also:
-
REGION
- See Also:
-
-
Method Details
-
of
Create anAddresswith the FORMATTED attribute set.- Parameters:
formatted- theformattedvalue to set- Returns:
- Address with a formatted address set
-
of
-
of
Create anAddresswith the FORMATTED and PRIMARY attributes set.- Parameters:
formatted- theformattedvalue to setisPrimary- set the PRIMARY flag of this object- Returns:
- Address with a formatted address set
-
of
Create anAddress.- Parameters:
attributes- to set- Returns:
- Address with the attributes set
-
copyOf
Description copied from class:ComplexAttributeValueCopies the provided map attribute value.- Specified by:
copyOfin classComplexAttributeValue<Address>- Parameters:
other- The map attribute value to copy- Returns:
- A copy of the map attribute value
-
getFormatted
The full mailing address, formatted for display or use with a mailing label. This attribute MAY contain newlines.- Returns:
- formatted String, or null if not set
-
getCountry
The country name component. When specified, the value MUST be in ISO 3166-1 "alpha-2" code format [ISO3166]; e.g., the United States and Sweden are "US" and "SE", respectively- Returns:
- the country name, or null if not set
-
getPostalCode
The zip code or postal code component.- Returns:
- The zip code or postal code, or null if not set
-
getLocality
The city or locality component.- Returns:
- The city or locality component, or null of not set
-
getStreetAddress
The full street address component, which may include house number, street name, P.O. box, and multi-line extended street address information. This attribute MAY contain newlines.- Returns:
- The full street address, or null if not set
-
getRegion
The state or region component.- Returns:
- The state or region component, or null of not set
-
withCountry
Create a new Address object, with the COUNTRY attribute setIf the attribute already exists, it will be replaced.
Note: While the SCIM2 specification states this value "MUST be in ISO 3166-1" (i.e. 'US', 'SE', etc), this is not currently enforced. This may change in a future release, however.
- Parameters:
country- the value to set- Returns:
- clone of the address object
- See Also:
-
withPostalCode
Create a new Address object, with the POSTAL_CODE attribute setIf the attribute alreay exists, it will be replaced.
- Parameters:
postalCode- the value to set- Returns:
- clone of the address object
- See Also:
-
withLocality
Create a new Address object, with the LOCALITY attribute setIf the attribute alreay exists, it will be replaced.
- Parameters:
locality- the value to set- Returns:
- clone of the address object
- See Also:
-
withStreetAddress
Create a new Address object, with the LOCALITY attribute setIf the attribute alreay exists, it will be replaced.
- Parameters:
streetAddress- the value to set- Returns:
- clone of the address object
- See Also:
-