org.jdesktop.wonderland.server.auth
Class WonderlandServerIdentity

java.lang.Object
  extended by org.jdesktop.wonderland.server.auth.WonderlandServerIdentity
All Implemented Interfaces:
com.sun.sgs.auth.Identity, java.io.Serializable

public class WonderlandServerIdentity
extends java.lang.Object
implements com.sun.sgs.auth.Identity, java.io.Serializable

A Darkstar identity that wraps a WonderlandIdentity. This Darkstar server-specific identity can be used to get the general WonderlandIdentity that can be shared with the Wonderland client.

Author:
jkaplan
See Also:
Serialized Form

Constructor Summary
WonderlandServerIdentity(WonderlandIdentity identity)
           
 
Method Summary
 WonderlandIdentity getIdentity()
          Get the WonderlandIdentity associated with this user
 java.lang.String getName()
          The user's name is the same as the name of the underlying WonderlandIdentity.
 void notifyLoggedIn()
           
 void notifyLoggedOut()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WonderlandServerIdentity

public WonderlandServerIdentity(WonderlandIdentity identity)
Method Detail

getIdentity

public WonderlandIdentity getIdentity()
Get the WonderlandIdentity associated with this user

Returns:
the Wonderland identity

getName

public java.lang.String getName()
The user's name is the same as the name of the underlying WonderlandIdentity.

Specified by:
getName in interface com.sun.sgs.auth.Identity
Returns:
the unique name of this identity

notifyLoggedIn

public void notifyLoggedIn()
Specified by:
notifyLoggedIn in interface com.sun.sgs.auth.Identity

notifyLoggedOut

public void notifyLoggedOut()
Specified by:
notifyLoggedOut in interface com.sun.sgs.auth.Identity


Open Wonderland - http://openwonderland.org