Class Name
Object
se.curity.identityserver.sdk.attribute.MapAttributeValue
se.curity.identityserver.sdk.attribute.scim.v2.Name
- All Implemented Interfaces:
Iterable<Attribute>,AttributeContainer<MapAttributeValue>,AttributeOrAttributeValue<AttributeValue>,AttributeValue
The name attribute of the SCIM core schema.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe family name of the User, or last name in most Western languages.The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.The given name of the User, or first name in most Western languages.The honorific prefix(es) of the User, or title in most Western languages.The honorific suffix(es) of the User, or suffix in most Western languages.The middle name(s) of the User.static NameCreate a name object from a list of attributes.static NameCreate a name object with the formatted string set.static NameCreate a name object from given and family name.static Nameof(MapAttributeValue attributeValue) withFamilyName(String familyName) Create copy of the name, with the familyName set.withGivenName(String givenName) Create copy of the name, with the givenName set.withHonorificPrefix(String honorificPrefix) Create copy of the name, with the honorificPrefix set.withHonorificSuffix(String honorificSuffix) Create copy of the name, with the honorificSuffix set.withMiddleName(String middleName) Create copy of the name, with the middleName set.Methods 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, with, 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:
-
HONORIFIC_SUFFIX
- See Also:
-
HONORIFIC_PREFIX
- See Also:
-
MIDDLE_NAME
- See Also:
-
GIVEN_NAME
- See Also:
-
FAMILY_NAME
- See Also:
-
-
Method Details
-
of
-
of
Create a name object with the formatted string set.- Parameters:
formatted- the string to use as the formatted name- Returns:
Name
-
of
Create a name object from a list of attributes. -
of
Create a name object from given and family name.- Parameters:
givenName- the given namefamilyName- the family name- Returns:
Nameobject
-
getHonorificSuffix
The honorific suffix(es) of the User, or suffix in most Western languages.Example: "III" given the full name "Ms. Barbara Jane Jensen, III".
- Returns:
- honorificSuffix, or null if not found
-
getHonorificPrefix
The honorific prefix(es) of the User, or title in most Western languages.Example: "Ms." given the full name "Ms. Barbara Jane Jensen, III".
- Returns:
- honorificPrefix, or null if not found
-
getMiddleName
The middle name(s) of the User.Example: "Jane" given the full name "Ms. Barbara Jane Jensen, III".
- Returns:
- middleName, or null if not found
-
getGivenName
The given name of the User, or first name in most Western languages.Exmple: "Barbara" given the full name "Ms. Barbara Jane Jensen, III".
- Returns:
- givenName, or null if not found
-
getFamilyName
The family name of the User, or last name in most Western languages.Example: "Jensen" given the full name "Ms. Barbara Jane Jensen, III".
- Returns:
- familyName, or null if not found
-
getFormatted
The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.Example: "Ms. Barbara Jane Jensen, III"
- Returns:
- formatted, default attribute if not set. Returns empty string if no values are set.
-
withFamilyName
Create copy of the name, with the familyName set.- Parameters:
familyName- to set- Returns:
- copied
Nameobject - See Also:
-
withGivenName
Create copy of the name, with the givenName set.- Parameters:
givenName- to set- Returns:
- copied
Nameobject - See Also:
-
withMiddleName
Create copy of the name, with the middleName set.- Parameters:
middleName- to set- Returns:
- copied
Nameobject - See Also:
-
withHonorificPrefix
Create copy of the name, with the honorificPrefix set.- Parameters:
honorificPrefix- to set- Returns:
- copied
Nameobject - See Also:
-
withHonorificSuffix
Create copy of the name, with the honorificSuffix set.- Parameters:
honorificSuffix- to set- Returns:
- copied
Nameobject - See Also:
-