mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
added options to disable ssl verification
This commit is contained in:
@@ -174,7 +174,7 @@ public class HttpRequest
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*
|
||||
*
|
||||
* @since 1.14
|
||||
*/
|
||||
public boolean isDecodeGZip()
|
||||
@@ -182,6 +182,30 @@ public class HttpRequest
|
||||
return decodeGZip;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
* @since 1.17
|
||||
*/
|
||||
public boolean isDisableCertificateValidation()
|
||||
{
|
||||
return disableCertificateValidation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
* @since 1.17
|
||||
*/
|
||||
public boolean isDisableHostnameValidation()
|
||||
{
|
||||
return disableHostnameValidation;
|
||||
}
|
||||
|
||||
//~--- set methods ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
@@ -208,15 +232,41 @@ public class HttpRequest
|
||||
* @param decodeGZip
|
||||
*
|
||||
* @return
|
||||
*
|
||||
*
|
||||
* @since 1.14
|
||||
*/
|
||||
public HttpRequest setDecodeGZip(boolean decodeGZip)
|
||||
{
|
||||
this.decodeGZip = decodeGZip;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param disableCertificateValidation
|
||||
* @since 1.17
|
||||
*/
|
||||
public void setDisableCertificateValidation(
|
||||
boolean disableCertificateValidation)
|
||||
{
|
||||
this.disableCertificateValidation = disableCertificateValidation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param disableHostnameValidation
|
||||
* @since 1.17
|
||||
*/
|
||||
public void setDisableHostnameValidation(boolean disableHostnameValidation)
|
||||
{
|
||||
this.disableHostnameValidation = disableHostnameValidation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -276,6 +326,12 @@ public class HttpRequest
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
private boolean disableHostnameValidation = false;
|
||||
|
||||
/** Field description */
|
||||
private boolean disableCertificateValidation = false;
|
||||
|
||||
/** Field description */
|
||||
private boolean decodeGZip = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user