org.xspace.security
Class XSpaceCredential

java.lang.Object
  extended byorg.xspace.security.XSpaceCredential
All Implemented Interfaces:
java.io.Serializable

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

XSpaceCredential encapsulates a user's ID and password to be used in authenticating a user's access to the XSpace services.

See Also:
Serialized Form

Constructor Summary
XSpaceCredential()
          Constructor
XSpaceCredential(java.lang.String userId, java.lang.String password)
          Constructor
 
Method Summary
 long getId()
          Returns the internal ID of this XSpaceCredential.
 java.lang.String getPassword()
          Returns the password
 java.lang.String getUserId()
          Returns the user ID
 void setId(long id)
           
 void setPassword(java.lang.String password)
          Sets the password
 void setUserId(java.lang.String userId)
          Sets the user ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSpaceCredential

public XSpaceCredential()
Constructor


XSpaceCredential

public XSpaceCredential(java.lang.String userId,
                        java.lang.String password)
Constructor

Parameters:
userId - the user ID
password - the password
Method Detail

getUserId

public java.lang.String getUserId()
Returns the user ID

Returns:
user ID

setUserId

public void setUserId(java.lang.String userId)
Sets the user ID

Parameters:
userId - the userId

getPassword

public java.lang.String getPassword()
Returns the password

Returns:
password

setPassword

public void setPassword(java.lang.String password)
Sets the password

Parameters:
password -

getId

public long getId()
Returns the internal ID of this XSpaceCredential.

Returns:
Returns the internal id.

setId

public void setId(long id)
Parameters:
id - The internal id to set.