Class SerializableProtectedString
java.lang.Object
com.ibm.wsspi.kernel.service.utils.SerializableProtectedString
- All Implemented Interfaces:
- com.ibm.websphere.ras.Traceable,- com.ibm.ws.ffdc.FFDCSelfIntrospectable,- Serializable
public final class SerializableProtectedString
extends Object
implements Serializable, com.ibm.websphere.ras.Traceable, com.ibm.ws.ffdc.FFDCSelfIntrospectable
This class wraps an instance of ProtectedString. The behavior is the same as that of ProtectedString
 except that it can be serialized. This means that the value will be hidden from trace and FFDC, but
 will be persisted in the local config cache.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final SerializableProtectedStringA password object that holds the equivalent of the empty stringstatic final SerializableProtectedStringA password object that holds null
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
NULL_PROTECTED_STRINGA password object that holds null
- 
EMPTY_PROTECTED_STRINGA password object that holds the equivalent of the empty string
 
- 
- 
Constructor Details- 
SerializableProtectedStringpublic SerializableProtectedString(char[] value) 
 
- 
- 
Method Details- 
introspectSelf- Specified by:
- introspectSelfin interface- com.ibm.ws.ffdc.FFDCSelfIntrospectable
 
- 
toTraceString- Specified by:
- toTraceStringin interface- com.ibm.websphere.ras.Traceable
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
getCharspublic char[] getChars()
- 
isEmptypublic boolean isEmpty()Return true if password is either null or has no characters (use to test situations where some kind of password is required)- Returns:
- true if password is null or has no characters.
 
 
-