diff --git a/docs/manual/src/docs/asciidoc/_includes/reactive/rsocket.adoc b/docs/manual/src/docs/asciidoc/_includes/reactive/rsocket.adoc index 7cecae769b6..a596e78e66b 100644 --- a/docs/manual/src/docs/asciidoc/_includes/reactive/rsocket.adoc +++ b/docs/manual/src/docs/asciidoc/_includes/reactive/rsocket.adoc @@ -43,9 +43,8 @@ In a Spring Boot application this is done automatically using `RSocketSecurityAu [source,java] ---- @Bean -ServerRSocketFactoryProcessor springSecurityRSocketSecurity( - SecuritySocketAcceptorInterceptor interceptor) { - return builder -> builder.addSocketAcceptorPlugin(interceptor); +RSocketServerCustomizer springSecurityRSocketSecurity(SecuritySocketAcceptorInterceptor interceptor) { + return (server) -> server.interceptors((registry) -> registry.forSocketAcceptor(interceptor)); } ----