java.lang.Object
com.pervasive.datarush.io.configuration.ConfigurationField
com.pervasive.datarush.io.configuration.PasswordField
A
ConfigurationField that consists of secret information. When
prompting the user for fields of this type, the user interface should obscure
the users entry. In addition, when fields of this type are serialized, the
user's entry is encrypted.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordField(String fieldName) Creates a new password field with an empty password valuePasswordField(String fieldName, Password fieldValue) Create a new password fieldPasswordField(String fieldName, String fieldValue) Create a new password field with the specified password value -
Method Summary
Modifier and TypeMethodDescriptionReturns the password.Creates a new field, equivalent to this, but with the value set to the specified value.Creates a new field, equivalent to this, but with the value set to the specified value.Methods inherited from class com.pervasive.datarush.io.configuration.ConfigurationField
getFieldName
-
Constructor Details
-
PasswordField
Creates a new password field with an empty password value- Parameters:
fieldName- the name of the field- Throws:
IllegalArgumentException- if fieldName is null or empty
-
PasswordField
Create a new password field with the specified password value- Parameters:
fieldName- the unique identifier for this fieldfieldValue- the clear text password- Throws:
IllegalArgumentException- if fieldName is null or empty or if fieldValue is null (fieldValue may be empty though)
-
PasswordField
Create a new password field- Parameters:
fieldName- the unique identifier for this fieldfieldValue- the clear text password- Throws:
IllegalArgumentException- if fieldName is null or empty or if fieldValue is null (fieldValue may be empty though)
-
-
Method Details
-
getFieldValue
Returns the password.- Returns:
- the password.
-
withValue
Creates a new field, equivalent to this, but with the value set to the specified value.- Parameters:
fieldValue- the new value- Returns:
- a new field with its settings modified
- Throws:
IllegalArgumentException- if value is null (may be empty though)
-
withValue
Creates a new field, equivalent to this, but with the value set to the specified value.- Parameters:
fieldValue- the new value- Returns:
- a new field with its settings modified
- Throws:
IllegalArgumentException- if value is null (may be empty though)
-