2019-01-21 17:01:40 +00:00
|
|
|
[[_sp-idp-httpclient]]
|
2016-11-04 20:43:30 +00:00
|
|
|
|
2024-07-22 08:16:24 +00:00
|
|
|
== IDP HttpClient sub element
|
2016-11-04 20:43:30 +00:00
|
|
|
|
|
|
|
The `HttpClient` optional sub element defines the properties of HTTP client used
|
|
|
|
for automatic obtaining of certificates containing public keys for IDP signature
|
|
|
|
verification via SAML descriptor of the IDP when
|
2017-08-28 12:50:14 +00:00
|
|
|
<<_sp-idp-keys-automatic,enabled>>.
|
2016-11-04 20:43:30 +00:00
|
|
|
|
|
|
|
[source,xml]
|
|
|
|
----
|
|
|
|
<HttpClient connectionPoolSize="10"
|
|
|
|
disableTrustManager="false"
|
|
|
|
allowAnyHostname="false"
|
|
|
|
clientKeystore="classpath:keystore.jks"
|
|
|
|
clientKeystorePassword="pwd"
|
|
|
|
truststore="classpath:truststore.jks"
|
|
|
|
truststorePassword="pwd"
|
2021-06-30 08:25:40 +00:00
|
|
|
proxyUrl="http://proxy/"
|
|
|
|
socketTimeout="5000"
|
|
|
|
connectionTimeout="6000"
|
|
|
|
connectionTtl="500" />
|
2016-11-04 20:43:30 +00:00
|
|
|
----
|
|
|
|
|
|
|
|
connectionPoolSize::
|
2017-08-28 12:50:14 +00:00
|
|
|
This config option defines how many connections to the {project_name} server should be pooled.
|
2016-11-04 20:43:30 +00:00
|
|
|
This is _OPTIONAL_.
|
|
|
|
The default value is `10`.
|
|
|
|
|
|
|
|
disableTrustManager::
|
2017-08-28 12:50:14 +00:00
|
|
|
If the {project_name} server requires HTTPS and this config option is set to `true` you do not have to specify a truststore.
|
2016-11-04 20:43:30 +00:00
|
|
|
This setting should only be used during development and *never* in production as it will disable verification of SSL certificates.
|
|
|
|
This is _OPTIONAL_.
|
|
|
|
The default value is `false`.
|
|
|
|
|
|
|
|
allowAnyHostname::
|
2017-08-28 12:50:14 +00:00
|
|
|
If the {project_name} server requires HTTPS and this config option is set to `true`
|
|
|
|
the {project_name} server's certificate is validated via the truststore,
|
2016-11-04 20:43:30 +00:00
|
|
|
but host name validation is not done.
|
|
|
|
This setting should only be used during development and *never* in production
|
|
|
|
as it will partly disable verification of SSL certificates.
|
2022-10-19 06:49:23 +00:00
|
|
|
This setting may be useful in test environments. This is _OPTIONAL_.
|
2016-11-04 20:43:30 +00:00
|
|
|
The default value is `false`.
|
|
|
|
|
|
|
|
truststore::
|
2019-03-12 04:50:37 +00:00
|
|
|
The value is the file path to a truststore file.
|
2016-11-04 20:43:30 +00:00
|
|
|
If you prefix the path with `classpath:`, then the truststore will be obtained from the deployment's classpath instead.
|
2017-08-28 12:50:14 +00:00
|
|
|
Used for outgoing HTTPS communications to the {project_name} server.
|
2016-11-04 20:43:30 +00:00
|
|
|
Client making HTTPS requests need a way to verify the host of the server they are talking to.
|
2022-10-19 06:49:23 +00:00
|
|
|
This is what the truststore does.
|
2016-11-04 20:43:30 +00:00
|
|
|
The keystore contains one or more trusted host certificates or certificate authorities.
|
2017-08-28 12:50:14 +00:00
|
|
|
You can create this truststore by extracting the public certificate of the {project_name} server's SSL keystore.
|
2016-11-04 20:43:30 +00:00
|
|
|
This is _REQUIRED_ unless `disableTrustManager` is `true`.
|
|
|
|
|
|
|
|
truststorePassword::
|
2019-03-12 04:50:37 +00:00
|
|
|
Password for the truststore.
|
2016-11-04 20:43:30 +00:00
|
|
|
This is _REQUIRED_ if `truststore` is set and the truststore requires a password.
|
|
|
|
|
|
|
|
clientKeystore::
|
|
|
|
This is the file path to a keystore file.
|
2017-08-28 12:50:14 +00:00
|
|
|
This keystore contains client certificate for two-way SSL when the adapter makes HTTPS requests to the {project_name} server.
|
2016-11-04 20:43:30 +00:00
|
|
|
This is _OPTIONAL_.
|
|
|
|
|
|
|
|
clientKeystorePassword::
|
|
|
|
Password for the client keystore and for the client's key.
|
|
|
|
This is _REQUIRED_ if `clientKeystore` is set.
|
|
|
|
|
|
|
|
proxyUrl::
|
|
|
|
URL to HTTP proxy to use for HTTP connections.
|
|
|
|
This is _OPTIONAL_.
|
2021-06-30 08:25:40 +00:00
|
|
|
|
|
|
|
socketTimeout::
|
|
|
|
Timeout for socket waiting for data after establishing the connection in milliseconds.
|
|
|
|
Maximum time of inactivity between two data packets.
|
|
|
|
A timeout value of zero is interpreted as an infinite timeout.
|
|
|
|
A negative value is interpreted as undefined (system default if applicable).
|
|
|
|
The default value is `-1`.
|
|
|
|
This is _OPTIONAL_.
|
|
|
|
|
|
|
|
connectionTimeout::
|
|
|
|
Timeout for establishing the connection with the remote host in milliseconds.
|
|
|
|
A timeout value of zero is interpreted as an infinite timeout.
|
|
|
|
A negative value is interpreted as undefined (system default if applicable).
|
|
|
|
The default value is `-1`.
|
|
|
|
This is _OPTIONAL_.
|
|
|
|
|
|
|
|
connectionTtl::
|
|
|
|
Connection time-to-live for client in milliseconds.
|
|
|
|
A value less than or equal to zero is interpreted as an infinite value.
|
|
|
|
The default value is `-1`.
|
|
|
|
This is _OPTIONAL_.
|