public class HttpsUrlConnectionMessageSender
extends org.springframework.ws.transport.http.HttpUrlConnectionMessageSender
implements org.springframework.beans.factory.InitializingBean
HttpUrlConnectionMessageSender that adds support for (self-signed) HTTPS certificates.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SSL_PROTOCOL
The default SSL protocol.
|
| Constructor and Description |
|---|
HttpsUrlConnectionMessageSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
prepareConnection(HttpURLConnection connection) |
void |
setHostnameVerifier(HostnameVerifier hostnameVerifier)
Specifies the host name verifier to use for this message sender.
|
void |
setKeyManagers(KeyManager[] keyManagers)
Specifies the key managers to use for this message sender.
|
void |
setSecureRandom(SecureRandom rnd)
Specifies the secure random to use for this message sender.
|
void |
setSslProtocol(String sslProtocol)
Sets the SSL protocol to use.
|
void |
setSslProvider(String sslProvider)
Sets the SSL provider to use.
|
void |
setSslSocketFactory(SSLSocketFactory sslSocketFactory)
Specifies the SSLSocketFactory to use for this message sender.
|
void |
setTrustManagers(TrustManager[] trustManagers)
Specifies the trust managers to use for this message sender.
|
createConnectionpublic static final String DEFAULT_SSL_PROTOCOL
public void setSslProtocol(String sslProtocol)
ssl.SSLContext.getInstance(String, String)public void setSslProvider(String sslProvider)
SSLContext.getInstance(String, String)public void setKeyManagers(KeyManager[] keyManagers)
Setting either this property or trustManagers is required.
public void setTrustManagers(TrustManager[] trustManagers)
Setting either this property or keyManagers is required.
public void setHostnameVerifier(HostnameVerifier hostnameVerifier)
public void setSecureRandom(SecureRandom rnd)
public void setSslSocketFactory(SSLSocketFactory sslSocketFactory)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected void prepareConnection(HttpURLConnection connection) throws IOException
prepareConnection in class org.springframework.ws.transport.http.HttpUrlConnectionMessageSenderIOException