public class SauceOnDemandAuthentication extends Object
| Constructor and Description |
|---|
SauceOnDemandAuthentication()
Constructs a new instance, first attempting to populate the username/access key
from system properties/environment variables.
|
SauceOnDemandAuthentication(String username,
String accessKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessKey() |
static File |
getDefaultCredentialFile()
Location of the default credential file.
|
String |
getUsername() |
void |
saveTo(File propertyFile)
Persists this credential to the disk.
|
void |
setAccessKey(String accessKey) |
void |
setUsername(String username) |
public SauceOnDemandAuthentication()
public static File getDefaultCredentialFile()
public String getUsername()
public void setUsername(String username)
public String getAccessKey()
public void setAccessKey(String accessKey)
public void saveTo(File propertyFile) throws IOException
propertyFile - File object to save java propery style credentials to.IOException - If the file I/O fails.Copyright © 2016 Sauce Labs. All rights reserved.