org.jdesktop.wonderland.server.auth
Class ClientIdentityService

java.lang.Object
  extended by org.jdesktop.wonderland.server.auth.ClientIdentityService
All Implemented Interfaces:
com.sun.sgs.service.Service

public class ClientIdentityService
extends java.lang.Object
implements com.sun.sgs.service.Service

The ClientIdentityService class provides access to a persistent ClientIdentity object, which, in turn, permits us to access the WonderlandIdentity object found in a given UserGLO object. In particular, this is necessary for identifying the user group to which a given participant belongs. With such information, we can effectively operate a discretionary access control system. Note that this code is based upon sample code by Brendan Burns (brendan.d.burns on gmail); modified by Tim Wright for the purpose of accessing identity data. To use, add: com.sun.sgs.app.services=:ClientIdentityService com.sun.sgs.app.managers=:ClientIdentityManager to your DarkStar server's .properties file. Then access with AppContext.getManager(ClientIdentityManager.class);

Version:
0.1
Author:
twright

Constructor Summary
ClientIdentityService(java.util.Properties prop, com.sun.sgs.kernel.ComponentRegistry registry, com.sun.sgs.service.TransactionProxy transactionProxy)
           
 
Method Summary
 WonderlandIdentity getClientID()
           
 java.lang.String getName()
           
 void ready()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientIdentityService

public ClientIdentityService(java.util.Properties prop,
                             com.sun.sgs.kernel.ComponentRegistry registry,
                             com.sun.sgs.service.TransactionProxy transactionProxy)
Method Detail

getClientID

public WonderlandIdentity getClientID()

getName

public java.lang.String getName()
Specified by:
getName in interface com.sun.sgs.service.Service

ready

public void ready()
           throws java.lang.Exception
Specified by:
ready in interface com.sun.sgs.service.Service
Throws:
java.lang.Exception

shutdown

public void shutdown()
Specified by:
shutdown in interface com.sun.sgs.service.Service


Open Wonderland - http://openwonderland.org