com.ibm.wsspi.kernel.service.utils
Class SerializableProtectedString
- java.lang.Object
com.ibm.wsspi.kernel.service.utils.SerializableProtectedString
All implemented interfaces:
java.io.Serializable
- public final class SerializableProtectedString
- extends java.lang.Object
- implements java.io.Serializable
See Also:
Field Summary
Modifier and Type | Field and Description |
---|---|
|
EMPTY_PROTECTED_STRING
A password object that holds the equivalent of the empty string
|
|
NULL_PROTECTED_STRING
A password object that holds null
|
Constructor Summary
Constructor and Description |
---|
SerializableProtectedString(char[] value)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
equals(java.lang.Object o)
|
|
getChars()
|
|
hashCode()
|
|
introspectSelf()
|
|
isEmpty()
Return true if password is either null or has no characters
(use to test situations where some kind of password is required)
|
|
toString()
|
|
toTraceString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail
NULL_PROTECTED_STRING
- public static final SerializableProtectedString NULL_PROTECTED_STRING
A password object that holds null
EMPTY_PROTECTED_STRING
- public static final SerializableProtectedString EMPTY_PROTECTED_STRING
A password object that holds the equivalent of the empty string
Constructor Detail
SerializableProtectedString
- public SerializableProtectedString( char[] value)
Method Detail
introspectSelf
- public java.lang.String[] introspectSelf( )
toTraceString
- public java.lang.String toTraceString( )
equals
- public boolean equals(java.lang.Object o)
Overrides:
equals
in class java.lang.Object
hashCode
- public int hashCode()
Overrides:
hashCode
in class java.lang.Object
toString
- public java.lang.String toString( )
Overrides:
toString
in class java.lang.Object
getChars
- public char[] getChars()
isEmpty
- public 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.