public final class SecretValue extends Object implements DataValue
Modifier and Type | Field and Description |
---|---|
static String |
STRING_REPRESENTATION
Constant returned by the toString method of
SecretValue . |
Constructor and Description |
---|
SecretValue(char[] value)
Create a value with the specified char array content.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ValueVisitor visitor) |
void |
clear()
Clear the content inside SecretValue
|
SecretValue |
copy() |
boolean |
equals(Object o) |
DataType |
getType() |
char[] |
getValue()
Returns the underlying char array content.
|
int |
hashCode() |
String |
toString()
Always returns "<secret>" - Safety precaution for the case when
someone uses the toString directly on
SecretValue object or on a
StructValue that contains a secret and for instance logs the
result. |
public static final String STRING_REPRESENTATION
SecretValue
.public SecretValue(char[] value)
value
- char[]CoreException
- if the passed char array is nullpublic char[] getValue()
public void clear()
public String toString()
SecretValue
object or on a
StructValue
that contains a secret and for instance logs the
result.public void accept(ValueVisitor visitor)
public SecretValue copy()
copy
in interface DataValue
ConcurrentModificationException
if the DataValue is modified at the time of coping.Copyright © 2015. All Rights Reserved.