public class UserAttributesRequest extends Object
User.
By itself, this request has no affect on a user. It simply persists the user attributes to the database. At that point, it is up to the implementer to handle those attributes.
A common use-case is adding additional claims to a token. To do this, it is required to implement
a custom TokenEnhancer and manually
add any claims.
| Constructor and Description |
|---|
UserAttributesRequest() |
UserAttributesRequest(String userId,
Map<String,Object> payload) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Map<String,Object> |
getPayload()
The values to add to the
User's attributes. |
String |
getUserId()
The id of the user to add additional attributes.
|
int |
hashCode() |
void |
setPayload(Map<String,Object> payload)
The values to add to the
User's attributes. |
void |
setUserId(String userId)
The id of the user to add additional attributes.
|
String |
toString() |
public String getUserId()
User.getId()public Map<String,Object> getPayload()
User's attributes.
This is a key/value pair, and the key(s) should be a unique value. If these attributes are
intended to be used as additional claims, a custom
TokenEnhancer must be implemented.
User's attributesUser.getAttributes()public void setUserId(String userId)
User.getId()public void setPayload(Map<String,Object> payload)
User's attributes.
This is a key/value pair, and the key(s) should be a unique value. If these attributes are
intended to be used as additional claims, a custom
TokenEnhancer must be implemented.
payload - the values to add to the User's attributesUser.getAttributes()protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.