Search in sources :

Example 1 with PayloadSocketAcceptorInterceptor

use of org.springframework.security.rsocket.core.PayloadSocketAcceptorInterceptor in project spring-security by spring-projects.

the class RSocketSecurity method build.

public PayloadSocketAcceptorInterceptor build() {
    PayloadSocketAcceptorInterceptor interceptor = new PayloadSocketAcceptorInterceptor(payloadInterceptors());
    RSocketMessageHandler handler = getBean(RSocketMessageHandler.class);
    interceptor.setDefaultDataMimeType(handler.getDefaultDataMimeType());
    interceptor.setDefaultMetadataMimeType(handler.getDefaultMetadataMimeType());
    return interceptor;
}
Also used : PayloadSocketAcceptorInterceptor(org.springframework.security.rsocket.core.PayloadSocketAcceptorInterceptor) RSocketMessageHandler(org.springframework.messaging.rsocket.annotation.support.RSocketMessageHandler)

Aggregations

RSocketMessageHandler (org.springframework.messaging.rsocket.annotation.support.RSocketMessageHandler)1 PayloadSocketAcceptorInterceptor (org.springframework.security.rsocket.core.PayloadSocketAcceptorInterceptor)1