class SimpleHTTPBuilderSSLHelper extends java.lang.Object
Through its main method SimpleHTTPBuilderSSLHelper.addSSLSupport and using a KeyStoreFactory
and a org.apache.http.conn.ssl.SSLSocketFactory
it registers an SSL Scheme containing a java.security.KeyStore, loaded with either a keystore and/or a
truststore, into the Builder.Client's Connection Manager.
By default the it will use a SimpleKeyStoreFactory .
Please review the SimpleKeyStoreFactory documentation to be aware of its configuration
keys hosted inside the ConfigObject.
| Type | Name and description |
|---|---|
KeyStoreFactory |
restPluginKeyStoreFactoryDefines the KeyStoreFactory used if connecting to an endpoints behind SSL. |
| Type | Name and description |
|---|---|
groovyx.net.http.HTTPBuilder |
addSSLSupport(groovy.util.ConfigObject config, groovyx.net.http.HTTPBuilder builder)If a Key Store and/or a Trust Store are defined it creates a org.apache.http.conn.ssl.SSLSocketFactory attaching
it to the given builder.client.connectionManager.
|
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Defines the KeyStoreFactory used if connecting to an endpoints behind SSL.
If a Key Store and/or a Trust Store are defined it creates a org.apache.http.conn.ssl.SSLSocketFactory attaching
it to the given builder.client.connectionManager.
The config:ConfigObject may specify the following value(s) among others used by the KeyStoreFactory:
org.apache.http.conn.ssl.SSLSocketFactory, eg.
https.cert.hostnameVerifier=allow_all. If none is specified the default SSLSocketFactory's strategy will be used.