com.kodemuse.security.ssl
Class SessionID
java.lang.Object
|
+--com.kodemuse.security.ssl.LogCapability
|
+--com.kodemuse.security.ssl.SessionID
- All Implemented Interfaces:
- DataSource
- class SessionID
- extends LogCapability
- implements DataSource
opaque SessionID<0..32>;
Session ID should be unique and difficult to guess. The first few
bytes of session id satisfy uniqueness based on a counter and time
and the rest of bytes are random salt.
- Author:
- Harmeet Bedi
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SessionID
public SessionID(java.io.DataInputStream inp)
throws java.io.IOException
SessionID
public SessionID(byte[] ba)
SessionID
public SessionID()
getData
public byte[] getData()
isValid
public boolean isValid()
write
public void write(OutputBuffer out)
- Specified by:
write
in interface DataSource
generate
public static SessionID generate()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object