public abstract class AbstractAPIWrapper
extends java.lang.Object
Abstract APIWrapper base class.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_ADDRESS |
Modifier and Type | Method and Description |
---|---|
void |
setUpApiCredentials(java.lang.String apiID,
java.lang.String apiKey)
Set up the Veracode API credentials.
|
void |
setUpCredentials(java.lang.String username,
java.lang.String password)
Set up the Veracode login credentials.
|
void |
setUpProxy(java.net.Proxy proxy)
Set up a connection using a proxy represented by an instance of the
java.net.Proxy class.
|
void |
setUpProxy(java.lang.String host,
java.lang.String port)
Set up a connection using a proxy that requires no authentication.
|
void |
setUpProxy(java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password)
Set up a connection using a proxy that requires authentication.
|
public void setUpProxy(java.net.Proxy proxy)
Set up a connection using a proxy represented by an instance of the java.net.Proxy class. This method must be called before calling the APIs.
public void setUpProxy(java.lang.String host, java.lang.String port)
Set up a connection using a proxy that requires no authentication. This method must be called before calling the APIs.
A proxy server is a computer that offers a computer network service to allow clients to make indirect network connections to other network services.
host
- The proxy IP address.port
- The proxy port. (A String that represents an integer value.)public void setUpProxy(java.lang.String host, java.lang.String port, java.lang.String username, java.lang.String password)
Set up a connection using a proxy that requires authentication. This method must be called before calling the APIs.
A proxy server is a computer that offers a computer network service to allow clients to make indirect network connections to other network services. Some proxy servers require a username and password to access their services.
host
- The proxy IP address.port
- The proxy port. (A String that represents an integer value.)username
- The proxy username.password
- The proxy password.public void setUpCredentials(java.lang.String username, java.lang.String password)
Set up the Veracode login credentials. This method must be called before calling the APIs.
username
- The Veracode username.password
- The Veracode password.public void setUpApiCredentials(java.lang.String apiID, java.lang.String apiKey)
Set up the Veracode API credentials. This method must be called before calling the APIs.
apiID
- The Veracode API ID.apiKey
- The Veracode API key.InvalidArgumentException
- If the specified API ID or API key is null or invalid.