From b00999deed40d22b78472a28b41a17808d98afdf Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 11 Dec 2019 08:56:40 -0600 Subject: [PATCH] Docs ServerRSocketFactoryCustomizer->ServerRSocketFactoryProcessor The documentation incorrectly used ServerRSocketFactoryCustomizer which was renamed to ServerRSocketFactoryProcessor. The docs now use the correct class name Fixes gh-7737 --- docs/manual/src/docs/asciidoc/_includes/reactive/rsocket.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/manual/src/docs/asciidoc/_includes/reactive/rsocket.adoc b/docs/manual/src/docs/asciidoc/_includes/reactive/rsocket.adoc index aae35bfbed..0bbf66f735 100644 --- a/docs/manual/src/docs/asciidoc/_includes/reactive/rsocket.adoc +++ b/docs/manual/src/docs/asciidoc/_includes/reactive/rsocket.adoc @@ -38,12 +38,12 @@ This configuration enables <> For Spring Security to work we need to apply `SecuritySocketAcceptorInterceptor` to the `ServerRSocketFactory`. This is what connects our `PayloadSocketAcceptorInterceptor` we created with the RSocket infrastructure. -In a Spring Boot application this can be done using the following code. +In a Spring Boot application this is done automatically using `RSocketSecurityAutoConfiguration` with the following code. [source,java] ---- @Bean -ServerRSocketFactoryCustomizer springSecurityRSocketSecurity( +ServerRSocketFactoryProcessor springSecurityRSocketSecurity( SecuritySocketAcceptorInterceptor interceptor) { return builder -> builder.addSocketAcceptorPlugin(interceptor); }