Skip to content

Commit

Permalink
TCP/IP: Add docs regarding host verification
Browse files Browse the repository at this point in the history
  • Loading branch information
shirshak55 authored Dec 10, 2024
1 parent 7fc104a commit b1032a7
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,29 @@ 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 b1032a7

Please sign in to comment.