|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avalara.avatax.services.base.Security
public class Security
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 |
---|
public Security()
Method Detail |
---|
public java.lang.String getAccount()
public void setAccount(java.lang.String account)
account
- public java.lang.String getLicense()
public void setLicense(java.lang.String license)
license
- public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
- public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |