Record Class UserInfoAttrMapping
java.lang.Object
java.lang.Record
org.alfresco.repo.security.authentication.identityservice.user.UserInfoAttrMapping
- Record Components:
usernameClaim- the claim that represents the usernamefirstNameClaim- the claim that represents the first namelastNameClaim- the claim that represents the last nameemailClaim- the claim that represents the email
public record UserInfoAttrMapping(String usernameClaim, String firstNameClaim, String lastNameClaim, String emailClaim)
extends Record
The UserInfoAttrMapping record represents the mapping of claims fetched from the UserInfo endpoint to create an Alfresco user.
-
Constructor Summary
ConstructorsConstructorDescriptionUserInfoAttrMapping(String usernameClaim, String firstNameClaim, String lastNameClaim, String emailClaim) Creates an instance of aUserInfoAttrMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theemailClaimrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstNameClaimrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastNameClaimrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theusernameClaimrecord component.
-
Constructor Details
-
UserInfoAttrMapping
public UserInfoAttrMapping(String usernameClaim, String firstNameClaim, String lastNameClaim, String emailClaim) Creates an instance of aUserInfoAttrMappingrecord class.- Parameters:
usernameClaim- the value for theusernameClaimrecord componentfirstNameClaim- the value for thefirstNameClaimrecord componentlastNameClaim- the value for thelastNameClaimrecord componentemailClaim- the value for theemailClaimrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
usernameClaim
Returns the value of theusernameClaimrecord component.- Returns:
- the value of the
usernameClaimrecord component
-
firstNameClaim
Returns the value of thefirstNameClaimrecord component.- Returns:
- the value of the
firstNameClaimrecord component
-
lastNameClaim
Returns the value of thelastNameClaimrecord component.- Returns:
- the value of the
lastNameClaimrecord component
-
emailClaim
Returns the value of theemailClaimrecord component.- Returns:
- the value of the
emailClaimrecord component
-