com.cafesoft.cams.session
Class SessionId

java.lang.Object
  extended by 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 getClusterName()
          Returns the name of the cluster that contained the security domain that created 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 clusterName, String serverName, String securityDomainName, String hash)
          Creates a SessionId with the specified provider id, security domain name, and hash.
 String getSecurityDomainName()
          Returns the name of the security domain that created this session id
 String getServerName()
          Returns the name of the server that contained 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
Throws:
MalformedSessionIdException

getInstance

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

Parameters:
clusterName - the name of the associated Cams cluster.
serverName - the name of the associated Cams policy server.
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
Throws:
MalformedSessionIdException

getClusterName

public String getClusterName()
Returns the name of the cluster that contained the security domain that created this session id

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

getServerName

public String getServerName()
Returns the name of the server that contained the security domain that created this session id

Returns:
the id of the server 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:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.