org.jdesktop.wonderland.server.auth
Class ServerAuthentication

java.lang.Object
  extended by org.jdesktop.wonderland.server.auth.ServerAuthentication

public class ServerAuthentication
extends java.lang.Object

Singelton to handle authenticating the Darkstar server to the Wonderland web server. It is assumed that the Darkstar server has the admin role in the groups defined by the web server.

Author:
jkaplan

Constructor Summary
protected ServerAuthentication()
           
 
Method Summary
protected  AuthenticationService authLogin(java.lang.String authUrl, java.lang.String username, java.lang.String passwordFile)
          Log in with the given username and password
protected  AuthenticationService getAuth()
          Get the authentication service.
static AuthenticationService getAuthenticationService()
          Get an instance of the authentication service
protected  AuthenticationService noAuthLogin(java.lang.String authUrl, java.lang.String username)
          Log in with no credentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerAuthentication

protected ServerAuthentication()
Method Detail

getAuthenticationService

public static AuthenticationService getAuthenticationService()
Get an instance of the authentication service


getAuth

protected AuthenticationService getAuth()
Get the authentication service.

Returns:
the authentication service

noAuthLogin

protected AuthenticationService noAuthLogin(java.lang.String authUrl,
                                            java.lang.String username)
                                     throws AuthenticationException
Log in with no credentials

Parameters:
username - the username
Throws:
AuthenticationException

authLogin

protected AuthenticationService authLogin(java.lang.String authUrl,
                                          java.lang.String username,
                                          java.lang.String passwordFile)
                                   throws AuthenticationException
Log in with the given username and password

Parameters:
username - the username to log in with
password - the password to log in with
Throws:
AuthenticationException


Open Wonderland - http://openwonderland.org