com.infoengine.connector
Class IeConnectionSpec

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by com.infoengine.connector.IeConnectionSpec
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>, javax.resource.cci.ConnectionSpec

public class IeConnectionSpec
extends java.util.Properties
implements javax.resource.cci.ConnectionSpec, java.io.Serializable

used by applications in the "application managed sign on" scenario to pass userName and password when requesting a connection from a ConnectionFactory

See Also:
Serialized Form

Constructor Summary
IeConnectionSpec()
          create a new connection spec with null userName and password
IeConnectionSpec(java.lang.String userName, java.lang.String password)
          create a new connection spec with userName and password
 
Method Summary
 java.security.Principal getAuthUser()
          get the "trusted" authenticated user.
 java.util.Locale getLocale()
          get the request Locale
 java.lang.String getPassword()
          get the password
 java.lang.String getUserName()
          get the userName
 void setAuthUser(java.security.Principal p)
          set the "trusted" authenticated user the server will only pay attention to this principal if the request is properly signed.
 void setLocale(java.util.Locale locale)
          set the request Locale
 void setPassword(java.lang.String password)
          set the password
 void setUserName(java.lang.String userName)
          set the userName
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IeConnectionSpec

public IeConnectionSpec()
create a new connection spec with null userName and password


IeConnectionSpec

public IeConnectionSpec(java.lang.String userName,
                        java.lang.String password)
create a new connection spec with userName and password

Parameters:
userName - the userName
password - the password
Method Detail

setUserName

public void setUserName(java.lang.String userName)
set the userName

Parameters:
userName - the userName to use

getUserName

public java.lang.String getUserName()
get the userName

Returns:
String

setPassword

public void setPassword(java.lang.String password)
set the password

Parameters:
password - the password to use

getPassword

public java.lang.String getPassword()
get the password

Returns:
String

setLocale

public void setLocale(java.util.Locale locale)
set the request Locale

Parameters:
locale - the locale to use

getLocale

public java.util.Locale getLocale()
get the request Locale

Returns:
Locale

setAuthUser

public void setAuthUser(java.security.Principal p)
set the "trusted" authenticated user the server will only pay attention to this principal if the request is properly signed.

Parameters:
p -

getAuthUser

public java.security.Principal getAuthUser()
get the "trusted" authenticated user.

Returns:
the auth user