Class WebsocketSecurityConfig

java.lang.Object
org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
org.craftercms.studio.config.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

Note: This configuration class is required because the XML namespace doesn't allow customizations

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>>
     
  • Constructor Summary

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

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • expressionHandler

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

    • WebsocketSecurityConfig

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

    • 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