iaik.security.ssl
Class SessionID

java.lang.Object
  |
  +--iaik.security.ssl.SessionID

public class SessionID
extends java.lang.Object
implements java.io.Serializable

This class implements a session identifier. A session identifier is an arbitrary byte sequence chosen by the server to identify an active or resumable session state.

See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object object)
          Compares two SessionIDs.
 byte[] getID()
          Returns the session id as byte array.
 int hashCode()
          Creates an integer suitable for hash table indexing.
 java.lang.String toString()
          Returns a string representation of this SessionID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getID

public byte[] getID()
Returns the session id as byte array.

hashCode

public int hashCode()
Creates an integer suitable for hash table indexing.
Overrides:
hashCode in class java.lang.Object
Returns:
a hash code for this SessionID

equals

public boolean equals(java.lang.Object object)
Compares two SessionIDs.
Overrides:
equals in class java.lang.Object
Parameters:
obj - the SesionID to compare against
Returns:
true if the objects are the same; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of this SessionID.
Overrides:
toString in class java.lang.Object
Returns:
a string representation