wt.adapter
Class WebjectUser

java.lang.Object
  extended bywt.adapter.WebjectUser

public class WebjectUser
extends Object


Nested Class Summary
private  class WebjectUser.CacheEntry
           
 
Field Summary
private static long AUTH_CACHE_TTL
           
private static String AUTH_URL
           
private static Hashtable cache
           
private static boolean VERBOSE
           
 
Constructor Summary
WebjectUser()
           
 
Method Summary
static String getUser(Webject webject)
          Determine the highest priority user string under which to execute the current instance of a webject, and validate the username and credentials.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTH_CACHE_TTL

private static long AUTH_CACHE_TTL

AUTH_URL

private static String AUTH_URL

VERBOSE

private static boolean VERBOSE

cache

private static Hashtable cache
Constructor Detail

WebjectUser

public WebjectUser()
Method Detail

getUser

public static String getUser(Webject webject)
                      throws WTException
Determine the highest priority user string under which to execute the current instance of a webject, and validate the username and credentials.

Parameters:
webject - the current webject object
Returns:
String the best choice for user
Throws:
WTException