Record Class PushCredentialsFile.User

java.lang.Object
java.lang.Record
com.iizix.server.push.engine.http.PushCredentialsFile.User
Record Components:
userID - The user ID exactly as written in the file, never null.
type - The password type.
secret - The password field: the IZ1 hash, the hexadecimal digest in lower case, or the plain password. Never logged.
Enclosing class:
PushCredentialsFile

public static record PushCredentialsFile.User(String userID, PushCredentialsFile.PasswordType type, String secret) extends Record
A user of the [users] section.
Author:
Christopher Mindus
  • Constructor Details

  • Method Details

    • key

      public String key()
      The lookup key: the user ID in English lower case, as IZS.USERS.user_name_lower.
      Returns:
      The key.
    • toString

      public String toString()
      Never the secret.
      Specified by:
      toString in class Record
      Returns:
      The user ID and the type.
    • 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.
    • userID

      public String userID()
      Returns the value of the userID record component.
      Returns:
      the value of the userID record component
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • secret

      public String secret()
      Returns the value of the secret record component.
      Returns:
      the value of the secret record component