public class ViPRPortalClient
extends java.lang.Object
Constructor and Description |
---|
ViPRPortalClient(ClientConfig config) |
ViPRPortalClient(java.lang.String host)
Convenience method for calling constructor with new ClientConfig().withHost(host)
|
ViPRPortalClient(java.lang.String host,
boolean ignoreCertificates)
Convenience method for calling constructor with new ClientConfig().withHost(host).withIgnoringCertificates(ignoreCertificates)
|
Modifier and Type | Method and Description |
---|---|
void |
setAuthToken(java.lang.String authToken)
Sets the authentication token to be used for this client.
|
Setup |
setup() |
ViPRPortalClient |
withAuthToken(java.lang.String token)
Sets the authentication token and returns the updated client.
|
public ViPRPortalClient(java.lang.String host)
host
- Hostname or IP address for the Virtual IP of the target environment.public ViPRPortalClient(java.lang.String host, boolean ignoreCertificates)
host
- Hostname or IP address for the Virtual IP of the target environment.ignoreCertificates
- True if SSL certificates should be ignored.public ViPRPortalClient(ClientConfig config)
public void setAuthToken(java.lang.String authToken)
authToken
- The authentication token to set.public ViPRPortalClient withAuthToken(java.lang.String token)
token
- The authentication token to set.setAuthToken(String)
public Setup setup()