Record Class TenantRegistry.UserDefinition
java.lang.Object
java.lang.Record
org.chenile.security.auth.framework.contract.TenantRegistry.UserDefinition
- Enclosing interface:
TenantRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theaclsrecord component.private final StringThe field for theemailrecord component.private final StringThe field for theidrecord component.private final StringThe field for thepasswordSecretHashrecord component.private final StringThe field for therealmrecord component.private final StringThe field for theusernamerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacls()Returns the value of theaclsrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thepasswordSecretHashrecord component.realm()Returns the value of therealmrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Field Details
-
id
The field for theidrecord component. -
realm
The field for therealmrecord component. -
username
The field for theusernamerecord component. -
email
The field for theemailrecord component. -
passwordSecretHash
The field for thepasswordSecretHashrecord component. -
acls
-
-
Constructor Details
-
UserDefinition
public UserDefinition(String id, String realm, String username, String email, String passwordSecretHash, List<String> acls) Creates an instance of aUserDefinitionrecord class.- Parameters:
id- the value for theidrecord componentrealm- the value for therealmrecord componentusername- the value for theusernamerecord componentemail- the value for theemailrecord componentpasswordSecretHash- the value for thepasswordSecretHashrecord componentacls- the value for theaclsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
realm
Returns the value of therealmrecord component.- Returns:
- the value of the
realmrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
passwordSecretHash
Returns the value of thepasswordSecretHashrecord component.- Returns:
- the value of the
passwordSecretHashrecord component
-
acls
-
CHENILE