public class SkipSslVerificationHttpRequestFactory
extends org.springframework.http.client.SimpleClientHttpRequestFactory
SimpleClientHttpRequestFactory
that skips SSL certificate verification.
信任自签证书,跳过Hostname检查
Constructor and Description |
---|
SkipSslVerificationHttpRequestFactory() |
Modifier and Type | Method and Description |
---|---|
static SSLContext |
getSSLContext()
信任自签证书
|
protected void |
prepareConnection(HttpURLConnection connection,
String httpMethod) |
public SkipSslVerificationHttpRequestFactory()
protected void prepareConnection(HttpURLConnection connection, String httpMethod) throws IOException
prepareConnection
in class org.springframework.http.client.SimpleClientHttpRequestFactory
IOException
public static SSLContext getSSLContext()
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.