Skip to content

Commit

Permalink
docs regarding host verification
Browse files Browse the repository at this point in the history
  • Loading branch information
shirshak55 committed Dec 9, 2024
1 parent 3950209 commit 6d5c4d0
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,26 @@ As noted there, such modifications are possible if SSL is being used, or not.

Also see xref:ip/annotation.adoc[Annotation-Based Configuration] and xref:ip/dsl.adoc[Using the Java DSL for TCP Components].

[[host-verification]]
== Host verification
Starting from version 5.1.0, host verification is enabled by default for enhanced security. This feature ensures that the server's identity is verified during TCP connections.

If you encounter a scenario where host verification needs to be disabled (not recommended), you can configure the socket-support attribute in the tcp-connection-factory.

[source,xml]
----
<int-ip:tcp-connection-factory id="client"
type="client"
host="localhost"
port="0"
socket-support="customSocketSupport"
single-use="true"
so-timeout="10000"/>
<bean id="customSocketSupport" class="org.springframework.integration.ip.tcp.connection.DefaultTcpSocketSupport">
<constructor-arg value="false" />
</bean>
----

[[custom-serializers-and-deserializers]]
== Custom Serializers and Deserializers

Expand Down

0 comments on commit 6d5c4d0

Please sign in to comment.