Class PasswordParameterImpl

java.lang.Object
com.biglybt.pifimpl.local.ui.config.ParameterImpl
com.biglybt.pifimpl.local.ui.config.PasswordParameterImpl
All Implemented Interfaces:
ParameterListener, ConfigParameter, EnablerParameter, Parameter, PasswordParameter

public class PasswordParameterImpl extends ParameterImpl implements PasswordParameter
  • Field Details

    • encoding_type

      protected int encoding_type
    • widthInCharacters

      private int widthInCharacters
  • Constructor Details

    • PasswordParameterImpl

      public PasswordParameterImpl(String key, String labelKey, int _encoding_type)
  • Method Details

    • setValue

      public void setValue(String plain_password)
      Specified by:
      setValue in interface PasswordParameter
    • getEncodingType

      public int getEncodingType()
    • getValue

      public byte[] getValue()
      Specified by:
      getValue in interface PasswordParameter
    • encode

      protected byte[] encode(String str)
    • encode

      public byte[] encode(byte[] bytes)
    • setWidthInCharacters

      public void setWidthInCharacters(int widthInCharacters)
      Description copied from interface: PasswordParameter
      Set a width hint for displaying the text field
      Specified by:
      setWidthInCharacters in interface PasswordParameter
    • getWidthInCharacters

      public int getWidthInCharacters()
      Specified by:
      getWidthInCharacters in interface PasswordParameter
      Returns:
      width hint in characters for displaying the text field
    • getValueObject

      public Object getValueObject()
      Description copied from interface: Parameter
      Retrieve the parameter's value as an Object. Subclasses will usually have a getValue() that will return a specific type.
      Specified by:
      getValueObject in interface Parameter
      Overrides:
      getValueObject in class ParameterImpl