Record Class FilePassword
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.config.secret.FilePassword
- Record Components:
passwordFile- file containing the password.
- All Implemented Interfaces:
PasswordProvider
A reference to the file containing a nonempty plain text password in UTF-8 encoding. If the password file
contains more than one line, only the characters of the first line are taken to be the password,
excluding the line ending. Subsequent lines are ignored.
-
Constructor Summary
ConstructorsConstructorDescriptionFilePassword(String passwordFile) Creates an instance of aFilePasswordrecord 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.Returns the value of thepasswordFilerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
FilePassword
Creates an instance of aFilePasswordrecord class.- Parameters:
passwordFile- the value for thepasswordFilerecord component
-
-
Method Details
-
getProvidedPassword
- Specified by:
getProvidedPasswordin interfacePasswordProvider
-
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). -
passwordFile
Returns the value of thepasswordFilerecord component.- Returns:
- the value of the
passwordFilerecord component
-