com.businessobjects.dsws
Class AuthenticationCredential

java.lang.Object
  extended by com.businessobjects.dsws.AuthenticationCredential
All Implemented Interfaces:
java.io.Serializable

public class AuthenticationCredential
extends java.lang.Object
implements java.io.Serializable

The AuthenticationCredential object stocks the user name and password used for secure HTTP Authentication. This object is passed to the Connection object.

Example:

com.businessobjects.dsws.AuthenticationCredential myCredential =
new AuthenticationCredential("name", "password");
URL boConURL = new URL("http://:/dswsbobje/services/session");
com.businessobjects.dsws.Connection boConnection;
boConnection = new Connection(boConURL);
boConnection.setAuthenticationCredential(myCredential);
Session mySession = new Session(boConnection);

See Also:
Connection, ProxyParameters, Session, SSLWrapper, Serialized Form

Constructor Summary
AuthenticationCredential()
          Instantiate a new blank AuthenticationCredential object.
AuthenticationCredential(java.lang.String userName, java.lang.String password)
          Instantiate a new AuthenticationCredential object with all parameters set.
 
Method Summary
 AuthenticationCredential copy()
          Internal Use Only.
 java.lang.String getPassword()
          Return the password of an authorized user.
 java.lang.String getUserName()
          Return the name of the authorized user.
 void setPassword(java.lang.String password)
          Set the password of an authorized user.
 void setUserName(java.lang.String userName)
          Set the name of the authorized user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationCredential

public AuthenticationCredential()
Instantiate a new blank AuthenticationCredential object.


AuthenticationCredential

public AuthenticationCredential(java.lang.String userName,
                                java.lang.String password)
Instantiate a new AuthenticationCredential object with all parameters set.

Parameters:
userName - The name of an authorized user.
password - The password of the authorized user.
Method Detail

getUserName

public java.lang.String getUserName()
Return the name of the authorized user.

Returns:
A string containing the user name.

setUserName

public void setUserName(java.lang.String userName)
Set the name of the authorized user.

Parameters:
userName - The name of an authorized user.

getPassword

public java.lang.String getPassword()
Return the password of an authorized user.

Returns:
A string containing the users password.

setPassword

public void setPassword(java.lang.String password)
Set the password of an authorized user.

Parameters:
password - The password of an authorized user.

copy

public AuthenticationCredential copy()

Internal Use Only.