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: theIZ1hash, 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 Summary
ConstructorsConstructorDescriptionUser(String userID, PushCredentialsFile.PasswordType type, String secret) Creates an instance of aUserrecord class.Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()The lookup key: the user ID in English lower case, asIZS.USERS.user_name_lower.secret()Returns the value of thesecretrecord component.toString()Never the secret.type()Returns the value of thetyperecord component.userID()Returns the value of theuserIDrecord component.
Constructor Details
User
Method Details
key
The lookup key: the user ID in English lower case, asIZS.USERS.user_name_lower.- Returns:
- The key.
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).userID
type
secret