com.yahoo.marketing.apt.client
Class Credential

java.lang.Object
  extended by com.yahoo.marketing.apt.client.Credential
All Implemented Interfaces:
java.io.Serializable

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

Class to encapsulate the credentials needed to communicate with APT from Yahoo! Web Services.

Since:
0.5
Version:
3.0.0
See Also:
Serialized Form

Field Summary
private  java.lang.String accountID
          Account ID of the account on which operations are being called.
private  java.lang.String license
          License key associated with Username.
private  java.lang.String password
          password to communicate with APT from Yahoo! Web Services.
private  java.lang.String username
          username to communicate with APT from Yahoo! Web Services.
 
Constructor Summary
Credential()
          Default constructor.
Credential(java.lang.String username, java.lang.String password, java.lang.String license, java.lang.String accountID)
          Constructor to instantiate credential object with parameters passed in.
 
Method Summary
 java.lang.String getAccountID()
          Return account ID string.
 java.lang.String getLicense()
          Return license string.
 java.lang.String getPassword()
          Return password string.
 java.lang.String getUsername()
          Return username string.
 void setAccountID(java.lang.String accountID)
          Set account ID string.
 void setLicense(java.lang.String license)
          Set license string.
 void setPassword(java.lang.String password)
          Set password string.
 void setUsername(java.lang.String username)
          Set username string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

username

private java.lang.String username
username to communicate with APT from Yahoo! Web Services.


password

private java.lang.String password
password to communicate with APT from Yahoo! Web Services.


license

private java.lang.String license
License key associated with Username.


accountID

private java.lang.String accountID
Account ID of the account on which operations are being called.

Constructor Detail

Credential

public Credential()
Default constructor.


Credential

public Credential(java.lang.String username,
                  java.lang.String password,
                  java.lang.String license,
                  java.lang.String accountID)
Constructor to instantiate credential object with parameters passed in.

Parameters:
username -
password -
license -
accountID -
Method Detail

getUsername

public java.lang.String getUsername()
Return username string.

Returns:
username.

setUsername

public void setUsername(java.lang.String username)
Set username string.

Parameters:
username -

getPassword

public java.lang.String getPassword()
Return password string.

Returns:
password.

setPassword

public void setPassword(java.lang.String password)
Set password string.

Parameters:
password -

getLicense

public java.lang.String getLicense()
Return license string.

Returns:
license.

setLicense

public void setLicense(java.lang.String license)
Set license string.

Parameters:
license -

getAccountID

public java.lang.String getAccountID()
Return account ID string.

Returns:
accountID.

setAccountID

public void setAccountID(java.lang.String accountID)
Set account ID string.

Parameters:
accountID -