com.infoengine.connector
Class IeConnectionSpec

java.lang.Object
  extended bycom.infoengine.connector.IeConnectionSpec
All Implemented Interfaces:
javax.resource.cci.ConnectionSpec, Serializable

public class IeConnectionSpec
extends Object
implements javax.resource.cci.ConnectionSpec, 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

Field Summary
private  Principal authUser
           
private  Locale locale
           
private  String password
           
private  String userName
           
 
Constructor Summary
IeConnectionSpec()
          create a new connection spec with null userName and password
IeConnectionSpec(String userName, String password)
          create a new connection spec with userName and password
 
Method Summary
 Principal getAuthUser()
          get the "trusted" authenticated user.
 Locale getLocale()
          get the request Locale
 String getPassword()
          get the password
 String getUserName()
          get the userName
 void setAuthUser(Principal p)
          set the "trusted" authenticated user the server will only pay attention to this principal if the request is properly signed.
 void setLocale(Locale locale)
          set the request Locale
 void setPassword(String password)
          set the password
 void setUserName(String userName)
          set the userName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userName

private String userName

password

private String password

locale

private Locale locale

authUser

private Principal authUser
Constructor Detail

IeConnectionSpec

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


IeConnectionSpec

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

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

setUserName

public void setUserName(String userName)
set the userName

Parameters:
userName - the userName to use

getUserName

public String getUserName()
get the userName

Returns:
String

setPassword

public void setPassword(String password)
set the password

Parameters:
password - the password to use

getPassword

public String getPassword()
get the password

Returns:
String

setLocale

public void setLocale(Locale locale)
set the request Locale

Parameters:
locale - the locale to use

getLocale

public Locale getLocale()
get the request Locale

Returns:
Locale

setAuthUser

public void setAuthUser(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 Principal getAuthUser()
get the "trusted" authenticated user.

Returns:
the auth user