org.jdesktop.wonderland.common.login
Class AuthenticationInfo

java.lang.Object
  extended by org.jdesktop.wonderland.common.login.AuthenticationInfo
All Implemented Interfaces:
java.lang.Cloneable

public class AuthenticationInfo
extends java.lang.Object
implements java.lang.Cloneable

Details on how to authenticate to a server

Author:
jkaplan

Nested Class Summary
static class AuthenticationInfo.Type
           
 
Constructor Summary
AuthenticationInfo()
          Default constructor
AuthenticationInfo(AuthenticationInfo.Type type, java.lang.String authURL)
          Create a new Authentication info with the given type and URL
 
Method Summary
 AuthenticationInfo clone()
           
 java.lang.String getAuthURL()
          Get the authentication URL.
 AuthenticationInfo.Type getType()
          Get the type of login.
 void setAuthURL(java.lang.String authURL)
          Set the authentication URL
 void setType(AuthenticationInfo.Type type)
          Set the type of login
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationInfo

public AuthenticationInfo()
Default constructor


AuthenticationInfo

public AuthenticationInfo(AuthenticationInfo.Type type,
                          java.lang.String authURL)
Create a new Authentication info with the given type and URL

Parameters:
type - the type of authentication
authURL - the URL to authenticate with
Method Detail

getAuthURL

public java.lang.String getAuthURL()
Get the authentication URL. The interpretation of this URL depends on the login type, but typically it will be the base URL to authenticate with

Returns:
the authentication URL

setAuthURL

public void setAuthURL(java.lang.String authURL)
Set the authentication URL

Parameters:
authURL - the new authentication URL

getType

public AuthenticationInfo.Type getType()
Get the type of login.

Returns:
the login type

setType

public void setType(AuthenticationInfo.Type type)
Set the type of login

Parameters:
type - the login type

clone

public AuthenticationInfo clone()
Overrides:
clone in class java.lang.Object


Open Wonderland - http://openwonderland.org