Class WebsocketSecurityConfig

  • All Implemented Interfaces:
    org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer

    @Configuration
    public class WebsocketSecurityConfig
    extends org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
    Spring Security Websocket Configuration
    Since:
    4.0.0
    Author:
    joseross
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.messaging.Message<Object>> expressionHandler  
    • Constructor Summary

      Constructors 
      Constructor Description
      WebsocketSecurityConfig​(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.messaging.Message<Object>> expressionHandler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configureInbound​(org.springframework.security.config.annotation.web.messaging.MessageSecurityMetadataSourceRegistry messages)  
      • Methods inherited from class org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer

        addArgumentResolvers, afterSingletonsInstantiated, configureClientInboundChannel, csrfChannelInterceptor, customizeClientInboundChannel, inboundChannelSecurity, inboundMessageSecurityMetadataSource, registerStompEndpoints, sameOriginDisabled, securityContextChannelInterceptor, setApplicationContext, setMessageExpessionHandler, setMessageExpressionHandler, setObjectPostProcessor
      • Methods inherited from class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer

        addReturnValueHandlers, configureClientOutboundChannel, configureMessageBroker, configureMessageConverters, configureWebSocketTransport
    • Field Detail

      • expressionHandler

        protected org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.messaging.Message<Object>> expressionHandler
    • Constructor Detail

      • WebsocketSecurityConfig

        @Autowired
        public WebsocketSecurityConfig​(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.messaging.Message<Object>> expressionHandler)
    • Method Detail

      • configureInbound

        protected void configureInbound​(org.springframework.security.config.annotation.web.messaging.MessageSecurityMetadataSourceRegistry messages)
        Overrides:
        configureInbound in class org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer