Class UserMappingProperties.FieldMapping
java.lang.Object
com.broadleafcommerce.auth.user.service.autoconfigure.UserMappingProperties.FieldMapping
- Enclosing class:
- UserMappingProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe attribute name where this field's value should be stored inUser.getAttributes().inthashCode()booleanWhether to also include the attribute as a claim on the token.voidsetAttributeName(String attributeName) The attribute name where this field's value should be stored inUser.getAttributes().voidsetIncludeAsTokenClaim(boolean includeAsTokenClaim) Whether to also include the attribute as a claim on the token.voidsetValuePath(String valuePath) toString()
-
Constructor Details
-
FieldMapping
public FieldMapping()
-
-
Method Details
-
getAttributeName
The attribute name where this field's value should be stored inUser.getAttributes(). -
getValuePath
-
isIncludeAsTokenClaim
public boolean isIncludeAsTokenClaim()Whether to also include the attribute as a claim on the token.attributeNamewill be converted to snake case (phoneNumber -> phone_number) if it is not already when added as a claim.Note, this will only work if the value is a
String, other objects cannot be used as claims. -
setAttributeName
The attribute name where this field's value should be stored inUser.getAttributes(). -
setValuePath
-
setIncludeAsTokenClaim
public void setIncludeAsTokenClaim(boolean includeAsTokenClaim) Whether to also include the attribute as a claim on the token.attributeNamewill be converted to snake case (phoneNumber -> phone_number) if it is not already when added as a claim.Note, this will only work if the value is a
String, other objects cannot be used as claims. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-