public class AttributeValue extends Object implements Serializable
Constructor and Description |
---|
AttributeValue() |
AttributeValue(Collection<String> values) |
AttributeValue(Collection<String> strVals,
Collection<?> objVals) |
AttributeValue(String value) |
Modifier and Type | Method and Description |
---|---|
Iterable<? extends Object> |
getAllObjectValues()
Gets all the values for this attribute as raw objects.
|
Object |
getObjectValue()
Gets the value of this attribute as a raw object.
|
String |
getValue()
Gets the value of this attribute.
|
String |
getValue(boolean enforceMasking)
Gets the value of this attribute.
|
String |
getValue(String nullMask)
Gets the value of this attribute.
|
String |
getValueMaskNull()
Gets the value of this attribute.
|
Iterable<String> |
getValues()
Gets all the values for this attribute.
|
Collection<String> |
getValuesAsCollection()
Gets all the values for this attribute.
|
HashSet<String> |
getValuesAsHashSet()
Returns the values as a
HashSet . |
boolean |
hasValue(String value)
Determines if this attribute value has the indicated value.
|
boolean |
isMasked()
Has this attribute value been flagged as masked?
|
boolean |
isMultiValue()
Determines if this is a multi-valued attribute.
|
String |
sensitiveToString()
If this is considered a 'masked' attribute (because it contains sensitive user info), the actual
value of the attribute will be concealed with this method only.
|
void |
setMasked(boolean masked)
Set whether or not this AttributeValue should be masked.
|
String |
toString()
If this is a single value attribute, this method returns that value.
|
public AttributeValue()
public AttributeValue(Collection<String> values)
public AttributeValue(String value)
public AttributeValue(Collection<String> strVals, Collection<?> objVals)
public boolean isMultiValue()
getValues()
would return
an Iterable having more than one item.public String getValue()
public String getValue(boolean enforceMasking)
public String getValue(String nullMask)
nullMask
- public String getValueMaskNull()
public Iterable<String> getValues()
public Collection<String> getValuesAsCollection()
public boolean hasValue(String value)
value
- the value of interest.public Iterable<? extends Object> getAllObjectValues()
public Object getObjectValue()
public String toString()
public String sensitiveToString()
public boolean isMasked()
public void setMasked(boolean masked)
masked
- Whether or not this AttributeValue should be masked.Copyright 2019 Ping Identity Corp. All rights reserved.