Package org.craftercms.studio.config
Class WebsocketSecurityConfig
java.lang.Object
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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.security.access.expression.SecurityExpressionHandler
<org.springframework.messaging.Message<Object>> -
Constructor Summary
ConstructorsConstructorDescriptionWebsocketSecurityConfig
(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.messaging.Message<Object>> expressionHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
addReturnValueHandlers, configureClientOutboundChannel, configureMessageBroker, configureMessageConverters, configureWebSocketTransport, getPhase
-
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 classorg.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
-