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,- java.io.Serializable
 
 public final class SerializableProtectedString extends java.lang.Object implements java.io.Serializable, com.ibm.websphere.ras.Traceable, com.ibm.ws.ffdc.FFDCSelfIntrospectableThis 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:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static SerializableProtectedStringEMPTY_PROTECTED_STRINGA password object that holds the equivalent of the empty stringstatic SerializableProtectedStringNULL_PROTECTED_STRINGA password object that holds null
 - 
Constructor SummaryConstructors Constructor Description SerializableProtectedString(char[] value)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)char[]getChars()inthashCode()java.lang.String[]introspectSelf()booleanisEmpty()Return true if password is either null or has no characters (use to test situations where some kind of password is required)java.lang.StringtoString()java.lang.StringtoTraceString()
 
- 
- 
- 
Field Detail- 
NULL_PROTECTED_STRINGpublic static final SerializableProtectedString NULL_PROTECTED_STRING A password object that holds null
 - 
EMPTY_PROTECTED_STRINGpublic static final SerializableProtectedString EMPTY_PROTECTED_STRING A password object that holds the equivalent of the empty string
 
- 
 - 
Method Detail- 
introspectSelfpublic java.lang.String[] introspectSelf() - Specified by:
- introspectSelfin interface- com.ibm.ws.ffdc.FFDCSelfIntrospectable
 
 - 
toTraceStringpublic java.lang.String toTraceString() - Specified by:
- toTraceStringin interface- com.ibm.websphere.ras.Traceable
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
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.
 
 
- 
 
-