public class HashedField extends Field
Field,
HashedTextFieldDescriptor,
FieldList.getFields(),
FieldList.getField(String),
FieldList.getFields(),
FieldList.getField(String),
Serialized FormDEFAULT_NUM_VAL| Constructor and Description |
|---|
HashedField(String name,
String hashedValue,
String plainTextValue)
Create a new HashedField with the specified name, hashed value and plaintext value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkSecret(String plaintext)
Checks the specified plaintext against the hash of this field.
|
String |
getHashedValue()
Gets the secure salted hash value of this field.
|
String |
getPlainTextValue()
Gets the new plaintext value of this field.
|
String |
getValue()
Gets the secure salted hash value of this field.
|
void |
setPlainTextValue(String plaintext)
Sets the new plaintext value of this field.
|
String |
toString() |
getFileValueAsByteArray, getFileValueAsString, getName, getValueAsBoolean, getValueAsDouble, getValueAsFloat, getValueAsInt, getValueAsLongpublic HashedField(String name, String hashedValue, String plainTextValue)
name - The name of this field.hashedValue - The hashed value for this field.plainTextValue - The plaintext value for this field. Can be null if the field has not changed.public String getPlainTextValue()
public void setPlainTextValue(String plaintext)
plaintext - The plaintext value of the field.public String getHashedValue()
public String getValue()
getHashedValue()public boolean checkSecret(String plaintext)
plaintext - The plaintext to check.Copyright 2019 Ping Identity Corp. All rights reserved.