Record Class TenantRegistry.UserDefinition

java.lang.Object
java.lang.Record
org.chenile.security.auth.framework.contract.TenantRegistry.UserDefinition
Enclosing interface:
TenantRegistry

public static record TenantRegistry.UserDefinition(String id, String realm, String username, String email, String passwordSecretHash, List<String> acls) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final List<String>
    The field for the acls record component.
    private final String
    The field for the email record component.
    private final String
    The field for the id record component.
    private final String
    The field for the passwordSecretHash record component.
    private final String
    The field for the realm record component.
    private final String
    The field for the username record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    UserDefinition(String id, String realm, String username, String email, String passwordSecretHash, List<String> acls)
    Creates an instance of a UserDefinition record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the acls record component.
    Returns the value of the email record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    id()
    Returns the value of the id record component.
    Returns the value of the passwordSecretHash record component.
    Returns the value of the realm record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the username record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      private final String id
      The field for the id record component.
    • realm

      private final String realm
      The field for the realm record component.
    • username

      private final String username
      The field for the username record component.
    • email

      private final String email
      The field for the email record component.
    • passwordSecretHash

      private final String passwordSecretHash
      The field for the passwordSecretHash record component.
    • acls

      private final List<String> acls
      The field for the acls record component.
  • Constructor Details

    • UserDefinition

      public UserDefinition(String id, String realm, String username, String email, String passwordSecretHash, List<String> acls)
      Creates an instance of a UserDefinition record class.
      Parameters:
      id - the value for the id record component
      realm - the value for the realm record component
      username - the value for the username record component
      email - the value for the email record component
      passwordSecretHash - the value for the passwordSecretHash record component
      acls - the value for the acls record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • realm

      public String realm()
      Returns the value of the realm record component.
      Returns:
      the value of the realm record component
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • email

      public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • passwordSecretHash

      public String passwordSecretHash()
      Returns the value of the passwordSecretHash record component.
      Returns:
      the value of the passwordSecretHash record component
    • acls

      public List<String> acls()
      Returns the value of the acls record component.
      Returns:
      the value of the acls record component