com.cafesoft.cams.session
Class SessionId

java.lang.Object
  |
  +--com.cafesoft.cams.session.SessionId

public class SessionId
extends Object

Contains a provider id, security domain name, and a hash.

Since:
11/27/02

Method Summary
 boolean equals(Object object)
          Indicates whether some other object is "equal to" this session id.
 String getHash()
          Returns the hash portion of this session id.
static SessionId getInstance(String id)
          Creates a SessionId with the specified id.
static SessionId getInstance(String providerId, String securityDomainName, String hash)
          Creates a SessionId with the specified provider id, security domain name, and hash.
 String getProviderId()
          Returns the id of the provider that contained the security domain that created this session id
 String getSecurityDomainName()
          Returns the name of the security domain that created this session id
 int hashCode()
          Returns a hash code value for this object.
 String toString()
          Returns a String with the following representation --
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static SessionId getInstance(String id)
                             throws MalformedSessionIdException
Creates a SessionId with the specified id.

Parameters:
id - contains the provider id, security domain name, and hash
Returns:
a SessionId with the specified id
MalformedSessionIdException

getInstance

public static SessionId getInstance(String providerId,
                                    String securityDomainName,
                                    String hash)
                             throws MalformedSessionIdException
Creates a SessionId with the specified provider id, security domain name, and hash.

Parameters:
providerId - the id of the provider that contained the security domain that created this session id
securityDomainName - the name of the security domain that created this session id
hash - contains a hash of data
Returns:
a SessionId with the specified id, security domain name, and hash
MalformedSessionIdException

getProviderId

public String getProviderId()
Returns the id of the provider that contained the security domain that created this session id

Returns:
the id of the provider that contained the security domain that created this session id

getSecurityDomainName

public String getSecurityDomainName()
Returns the name of the security domain that created this session id

Returns:
the name of the security domain that created this session id

getHash

public String getHash()
Returns the hash portion of this session id.

Returns:
the hash portion of this session id

hashCode

public int hashCode()
Returns a hash code value for this object.

Overrides:
hashCode in class Object
Returns:
a hash code value of this object

equals

public boolean equals(Object object)
Indicates whether some other object is "equal to" this session id.

Overrides:
equals in class Object
Parameters:
object - the object with which to compare
Returns:
true if this session id is the same as the object argument, false otherwise

toString

public String toString()
Returns a String with the following representation --

Overrides:
toString in class Object
Returns:
a String representation of this session id


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.