|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.saucelabs.rest.Credential
public class Credential
Credential for the Sauce OnDemand service.
| Constructor Summary | |
|---|---|
Credential()
Loads the credential from the default location "~/.sauce-ondemand" |
|
Credential(java.io.File propertyFile)
Loads a credential from the specified property file. |
|
Credential(java.lang.String username,
java.lang.String key)
Creates a credential by specifying the username and the key directly. |
|
| Method Summary | |
|---|---|
static java.io.File |
getDefaultCredentialFile()
Location of the default credential file. |
java.lang.String |
getKey()
|
java.lang.String |
getUsername()
|
void |
saveTo(java.io.File propertyFile)
Persists this credential to the disk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Credential(java.lang.String username,
java.lang.String key)
public Credential(java.io.File propertyFile)
throws java.io.IOException
username=kohsuke password=12345678-1234-1234-1234-1234567890ab
java.io.IOException - If the file I/O fails, such as non-existent file, incorrect format, or if the file is missing
the 'username' or 'key' parameters.
public Credential()
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String getUsername()
public java.lang.String getKey()
public void saveTo(java.io.File propertyFile)
throws java.io.IOException
java.io.IOException - If the file I/O fails.public static java.io.File getDefaultCredentialFile()
This common convention allows all the tools that interact with Sauce OnDemand REST API to use the single credential, thereby simplifying the user configuration.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||