public abstract class AbstractSecurityWampConfigurer
extends ch.rasc.wampspring.config.AbstractWampConfigurer
For example:
@Configuration
public class SecurityWampConfigurer extends AbstractUserWampConfigurer {
@Override
protected void configureInbound(MessageSecurityMetadataSourceRegistry messages) {
messages.wampPublishDestMatchers("/user/queue/errors").permitAll()
.wampSubscribeDestMatchers("/admin/**").hasRole("ADMIN").anyMessage()
.authenticated();
}
}
| Constructor and Description |
|---|
AbstractSecurityWampConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgumentResolvers(List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> argumentResolvers) |
void |
configureClientInboundChannel(org.springframework.messaging.support.AbstractMessageChannel channel) |
protected void |
configureInbound(WampMessageSecurityMetadataSourceRegistry messages) |
org.springframework.security.messaging.access.intercept.ChannelSecurityInterceptor |
inboundChannelSecurity() |
org.springframework.security.messaging.access.intercept.MessageSecurityMetadataSource |
inboundMessageSecurityMetadataSource() |
org.springframework.security.messaging.context.SecurityContextChannelInterceptor |
securityContextChannelInterceptor() |
public void addArgumentResolvers(List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> argumentResolvers)
addArgumentResolvers in interface ch.rasc.wampspring.config.WampConfigureraddArgumentResolvers in class ch.rasc.wampspring.config.AbstractWampConfigurerpublic void configureClientInboundChannel(org.springframework.messaging.support.AbstractMessageChannel channel)
configureClientInboundChannel in interface ch.rasc.wampspring.config.WampConfigurerconfigureClientInboundChannel in class ch.rasc.wampspring.config.AbstractWampConfigurer@Bean public org.springframework.security.messaging.access.intercept.ChannelSecurityInterceptor inboundChannelSecurity()
@Bean public org.springframework.security.messaging.context.SecurityContextChannelInterceptor securityContextChannelInterceptor()
@Bean public org.springframework.security.messaging.access.intercept.MessageSecurityMetadataSource inboundMessageSecurityMetadataSource()
protected void configureInbound(WampMessageSecurityMetadataSourceRegistry messages)
Copyright © 2015. All rights reserved.