org.gudy.azureus2.pluginsimpl.local.ui.config
Class PasswordParameterImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.ui.config.ParameterImpl
      extended by org.gudy.azureus2.pluginsimpl.local.ui.config.PasswordParameterImpl
All Implemented Interfaces:
ParameterListener, ConfigParameter, EnablerParameter, Parameter, PasswordParameter

public class PasswordParameterImpl
extends ParameterImpl
implements PasswordParameter


Field Summary
protected  byte[] defaultValue
           
protected  int encoding_type
           
 
Fields inherited from class org.gudy.azureus2.pluginsimpl.local.ui.config.ParameterImpl
config
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.config.PasswordParameter
ET_MD5, ET_PLAIN, ET_SHA1
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
 
Constructor Summary
PasswordParameterImpl(PluginConfigImpl config, String key, String label, int _encoding_type, byte[] _default_value)
           
 
Method Summary
protected  byte[] encode(byte[] bytes)
           
protected  byte[] encode(String str)
           
 byte[] getDefaultValue()
           
 int getEncodingType()
           
 byte[] getValue()
           
 void setValue(String plain_password)
           
 
Methods inherited from class org.gudy.azureus2.pluginsimpl.local.ui.config.ParameterImpl
addConfigParameterListener, addDisabledOnSelection, addEnabledOnSelection, addImplListener, addListener, destroy, fireParameterChanged, getConfigKeyName, getDisabledOnSelectionParameters, getEnabledOnSelectionParameters, getGenerateIntermediateEvents, getGroup, getKey, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isVisible, parameterChanged, removeConfigParameterListener, removeImplListener, removeListener, setEnabled, setGenerateIntermediateEvents, setGroup, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gudy.azureus2.plugins.ui.config.Parameter
addListener, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isVisible, removeListener, setEnabled, setGenerateIntermediateEvents, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
 
Methods inherited from interface org.gudy.azureus2.plugins.config.ConfigParameter
addConfigParameterListener, removeConfigParameterListener
 

Field Detail

defaultValue

protected byte[] defaultValue

encoding_type

protected int encoding_type
Constructor Detail

PasswordParameterImpl

public PasswordParameterImpl(PluginConfigImpl config,
                             String key,
                             String label,
                             int _encoding_type,
                             byte[] _default_value)
Method Detail

getDefaultValue

public byte[] getDefaultValue()

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

protected byte[] encode(byte[] bytes)