com.avalara.avatax.services.base
Class Security

java.lang.Object
  extended by com.avalara.avatax.services.base.Security

public class Security
extends java.lang.Object

Used to encapsulate security details used to authenticate the client, for example the user's account name and license number. This object is used to hold the information neccessary to support two types of logins, each requiring two pieces of information:

 Example:
 EngineConfiguration config = new FileProvider("avatax4j.wsdd");

 AddressSvcLocator svcLoc = new AddressSvcLocator(config);
 AddressSvcSoap svc = svcLoc.getAddressSvcSoap(new URL("http://www.avalara.com/services/"));

 // Set the profile
 Profile profile = new Profile();
 profile.setClient("AddressSvcTest,4.0.0.0");
 svc.setProfile(profile);

 // Set security
 Security security = new Security();
 security.setAccount("account");
 security.setLicense("license number");
 svc.setSecurity(security);

 PingResult result = svc.ping("");
 


Constructor Summary
Security()
          Initializes a new instance of the class.
 
Method Summary
 java.lang.String getAccount()
          Account name, for account and license number login.
 java.lang.String getLicense()
          License number, for account and license number login.
 java.lang.String getPassword()
          password, for UserName and password login.
 java.lang.String getUserName()
          UserName, for UserName and password login.
 void setAccount(java.lang.String account)
          Account name, for account and license number login.
 void setLicense(java.lang.String license)
          License number, for account and license number login.
 void setPassword(java.lang.String password)
          password, for UserName and password login.
 void setUserName(java.lang.String userName)
          UserName, for UserName and password login.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Security

public Security()
Initializes a new instance of the class.

Method Detail

getAccount

public java.lang.String getAccount()
Account name, for account and license number login.

Returns:
Account name

setAccount

public void setAccount(java.lang.String account)
Account name, for account and license number login.

Parameters:
account -

getLicense

public java.lang.String getLicense()
License number, for account and license number login.

Returns:
License Number

setLicense

public void setLicense(java.lang.String license)
License number, for account and license number login.

Parameters:
license -

getUserName

public java.lang.String getUserName()
UserName, for UserName and password login.

Returns:
User Name

setUserName

public void setUserName(java.lang.String userName)
UserName, for UserName and password login.

Parameters:
userName -

getPassword

public java.lang.String getPassword()
password, for UserName and password login.

Returns:
password

setPassword

public void setPassword(java.lang.String password)
password, for UserName and password login.

Parameters:
password -