com.ibm.wsspi.kernel.service.utils

Class SerializableProtectedString

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.kernel.service.utils.SerializableProtectedString
All implemented interfaces:
java.io.Serializable

  1. public final class SerializableProtectedString
  2. extends java.lang.Object
  3. implements java.io.Serializable
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:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. static
  2. SerializableProtectedString
EMPTY_PROTECTED_STRING
A password object that holds the equivalent of the empty string
  1. static
  2. SerializableProtectedString
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
  1. boolean
equals(java.lang.Object o)
  1. char[]
getChars()
  1. int
hashCode()
  1. java.lang.String[]
introspectSelf()
  1. boolean
isEmpty()
Return true if password is either null or has no characters (use to test situations where some kind of password is required)
  1. java.lang.String
toString()
  1. java.lang.String
toTraceString()
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Field Detail

NULL_PROTECTED_STRING

  1. public static final SerializableProtectedString NULL_PROTECTED_STRING
A password object that holds null

EMPTY_PROTECTED_STRING

  1. public static final SerializableProtectedString EMPTY_PROTECTED_STRING
A password object that holds the equivalent of the empty string

Constructor Detail

SerializableProtectedString

  1. public SerializableProtectedString( char[] value)

Method Detail

introspectSelf

  1. public java.lang.String[] introspectSelf( )

toTraceString

  1. public java.lang.String toTraceString( )

equals

  1. public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

  1. public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

  1. public java.lang.String toString( )
Overrides:
toString in class java.lang.Object

getChars

  1. public char[] getChars()

isEmpty

  1. 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.