diff --git a/pom.xml b/pom.xml
index 4f927af..e04440b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
4.0.0
it.corsinvest.proxmoxve
cv4pve-api-java
- 8.1.2
+ 8.1.3
jar
cv4pve-api-java
Corsinvest for Proxmox VE Client API Java
diff --git a/src/main/java/it/corsinvest/proxmoxve/api/PveClientBase.java b/src/main/java/it/corsinvest/proxmoxve/api/PveClientBase.java
index b2cbb95..b09a19f 100644
--- a/src/main/java/it/corsinvest/proxmoxve/api/PveClientBase.java
+++ b/src/main/java/it/corsinvest/proxmoxve/api/PveClientBase.java
@@ -46,6 +46,7 @@ public class PveClientBase {
private String _apiToken;
private Proxy _proxy = Proxy.NO_PROXY;
private int _timeout = 0;
+ private boolean _verifyCertificate = false;
public PveClientBase(String hostname, int port) {
_hostname = hostname;
@@ -70,6 +71,24 @@ public int getPort() {
return _port;
}
+ /**
+ * Get Verify Certificate
+ *
+ * @return bool
+ */
+ public boolean getVerifyCertificate() {
+ return _verifyCertificate;
+ }
+
+ /**
+ * Set proxy
+ *
+ * @param verifyCertificate
+ */
+ public void setVerifyCertificate(boolean verifyCertificate) {
+ _verifyCertificate = verifyCertificate;
+ }
+
/**
* Get proxy
*
@@ -82,7 +101,7 @@ public Proxy getProxy() {
/**
* Set proxy
*
- * @return Proxy
+ * @param proxy
*/
public void setProxy(Proxy proxy) {
_proxy = proxy;
@@ -154,7 +173,7 @@ public boolean login(String username, String password) throws JSONException, Pve
*
* @param username user name
* @param password password connection
- * @param realm pam/pve or custom
+ * @param realm pam/pve or custom
*
* @return boolean
* @throws JSONException
@@ -170,8 +189,8 @@ public boolean login(String username, String password, String realm)
*
* @param username user name
* @param password password connection
- * @param realm pam/pve or custom
- * @param otp One-time password for Two-factor authentication.
+ * @param realm pam/pve or custom
+ * @param otp One-time password for Two-factor authentication.
*
* @return boolean
* @throws JSONException
@@ -212,7 +231,7 @@ public String getApiUrl() {
/**
* Execute method GET
*
- * @param resource Url request
+ * @param resource Url request
* @param parameters Additional parameters
* @return Result
* @throws JSONException
@@ -224,7 +243,7 @@ public Result get(String resource, Map parameters) throws JSONEx
/**
* Execute method PUT
*
- * @param resource Url request
+ * @param resource Url request
* @param parameters Additional parameters
* @return Result
* @throws JSONException
@@ -236,7 +255,7 @@ public Result set(String resource, Map parameters) throws JSONEx
/**
* Execute method POST
*
- * @param resource Url request
+ * @param resource Url request
* @param parameters Additional parameters
* @return Result
* @throws JSONException
@@ -248,7 +267,7 @@ public Result create(String resource, Map parameters) throws JSO
/**
* Execute method DELETE
*
- * @param resource Url request
+ * @param resource Url request
* @param parameters Additional parameters
* @return Result
* @throws JSONException
@@ -345,29 +364,31 @@ private Result executeAction(String resource, MethodType methodType, Map parameters, String name, Map value) {
if (value != null) {
@@ -512,8 +533,8 @@ public static void addIndexedParameter(Map parameters, String na
/**
* Wait for task to finish
*
- * @param task Task identifier
- * @param wait Millisecond wait next check
+ * @param task Task identifier
+ * @param wait Millisecond wait next check
* @param timeOut Millisecond timeout
* @return 0 Success
* @throws JSONException
@@ -564,7 +585,7 @@ public String getExitStatusTask(String task) throws JSONException {
/**
* Convert JSONArray To List
*
- * @param Type of data
+ * @param Type of data
* @param array Array JSON
* @return T List of Type of data
* @throws JSONException