|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.security.sso.SharedEntry
Class that represents an entry in a shared secret. Handles all of the the
escaping and unescaping automatically. See the SharedSecret
class
for information about the shared secret format.
SharedSecret
, Serialized FormField Summary | |
static char |
CREDENTIAL_DELIMITER
The delimiter that seperates the key from the value in an entry where it represents a CredSet reference. |
static char |
NORMAL_DELIMITER
The delimiter that seperates the key from the value in an entry where it doesn't represent a CredSet reference. |
Constructor Summary | |
SharedEntry(String key,
String value)
Constructs an instance of this class. |
Method Summary | |
Object |
clone()
|
int |
compareTo(Object obj)
Compares this object with the specified object. |
boolean |
equals(Object obj)
Determines if this object is equal to the specified object. |
static String |
escapeString(String unescapedString)
Escapes the specified String. |
String |
getKey()
Returns the unescaped key. |
String |
getValue()
Returns the unescaped value. |
int |
hashCode()
|
boolean |
isCredSet()
Returns true if this object represents a CredSet reference and false if otherwise. |
static SharedEntry |
parseEntry(String entryStr)
Parses a String for a SharedEntry. |
void |
setValue(String value)
Sets the value of this object. |
String |
toString()
Returns the String representation of this object that has been properly escaped. |
static String |
unescapeString(String escapedString)
Unescapes the specified String. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final char CREDENTIAL_DELIMITER
public static final char NORMAL_DELIMITER
Constructor Detail |
public SharedEntry(String key, String value)
key
- The key.value
- The value.Method Detail |
public boolean isCredSet()
public Object clone()
public int compareTo(Object obj)
compareTo
in interface Comparable
obj
- The object that will be compared with.public boolean equals(Object obj)
equals
in class Object
obj
- The object that will be compared with.public static String escapeString(String unescapedString)
unescapedString
- The String that is not escaped.public String getKey()
public String getValue()
public int hashCode()
hashCode
in class Object
public static SharedEntry parseEntry(String entryStr) throws SSException
entryStr
- The String representation of a SharedEntry object.SSException
- If a SSException occurred.public void setValue(String value)
value
- The new value.public String toString()
toString
in class Object
escapeString(java.lang.String)
public static String unescapeString(String escapedString)
escapedString
- The escaped String that will be unescaped.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |