public class WampMessageSecurityMetadataSourceRegistry extends Object
MessageMatcher to the security
expressions.| Modifier and Type | Class and Description |
|---|---|
class |
WampMessageSecurityMetadataSourceRegistry.Constraint
Represents the security constraint to be applied to the
MessageMatcher
instances. |
| Constructor and Description |
|---|
WampMessageSecurityMetadataSourceRegistry() |
| Modifier and Type | Method and Description |
|---|---|
WampMessageSecurityMetadataSourceRegistry.Constraint |
anyMessage()
Maps any
Message to a security expression. |
protected boolean |
containsMapping()
Allows determining if a mapping was added.
|
protected org.springframework.security.messaging.access.intercept.MessageSecurityMetadataSource |
createMetadataSource()
Allows subclasses to create creating a
MessageSecurityMetadataSource. |
WampMessageSecurityMetadataSourceRegistry.Constraint |
matchers(org.springframework.security.messaging.util.matcher.MessageMatcher<?>... matchers)
Maps a
List of MessageMatcher instances to a security expression. |
WampMessageSecurityMetadataSourceRegistry.Constraint |
nullDestMatcher()
Maps any
Message that has a null destination header |
WampMessageSecurityMetadataSourceRegistry.Constraint |
wampCallDestMatchers(String... patterns)
|
WampMessageSecurityMetadataSourceRegistry.Constraint |
wampDestMatchers(String... patterns)
|
WampMessageSecurityMetadataSourceRegistry |
wampDestPathMatcher(org.springframework.util.PathMatcher matcher)
The
PathMatcher to be used with the
MessageSecurityMetadataSourceRegistry#wampDestMatchers(String...). |
WampMessageSecurityMetadataSourceRegistry.Constraint |
wampPublishDestMatchers(String... patterns)
|
WampMessageSecurityMetadataSourceRegistry.Constraint |
wampSubscribeDestMatchers(String... patterns)
|
WampMessageSecurityMetadataSourceRegistry.Constraint |
wampTypeMatchers(ch.rasc.wampspring.message.WampMessageType... typesToMatch)
Maps a
List of WampDestinationMessageMatcher instances. |
WampMessageSecurityMetadataSourceRegistry.Constraint |
wampUnsubscribeDestMatchers(String... patterns)
|
public WampMessageSecurityMetadataSourceRegistry()
public WampMessageSecurityMetadataSourceRegistry.Constraint anyMessage()
Message to a security expression.public WampMessageSecurityMetadataSourceRegistry.Constraint nullDestMatcher()
Message that has a null destination headerpublic WampMessageSecurityMetadataSourceRegistry.Constraint wampTypeMatchers(ch.rasc.wampspring.message.WampMessageType... typesToMatch)
List of WampDestinationMessageMatcher instances.typesToMatch - the WampMessageType instance to match onWampMessageSecurityMetadataSourceRegistry.Constraint associated to the matchers.public WampMessageSecurityMetadataSourceRegistry.Constraint wampDestMatchers(String... patterns)
List of WampDestinationMessageMatcher instances without
regard to the WampMessageType. If no destination is found on the Message,
then the Matcher returns false.patterns - the patterns to create WampDestinationMessageMatcher from.
Uses MessageSecurityMetadataSourceRegistry#wampDestPathMatcher(PathMatcher)
.WampMessageSecurityMetadataSourceRegistry.Constraint that is associated to the MessageMatcherMessageSecurityMetadataSourceRegistry#wampDestPathMatcher(PathMatcher)}public WampMessageSecurityMetadataSourceRegistry.Constraint wampCallDestMatchers(String... patterns)
List of WampDestinationMessageMatcher instances that match
on WampMessageType.CALL. If no destination is found on the Message, then
the Matcher returns false.patterns - the patterns to create WampDestinationMessageMatcher from.
Uses MessageSecurityMetadataSourceRegistry#wampDestPathMatcher(PathMatcher)
.WampMessageSecurityMetadataSourceRegistry.Constraint that is associated to the MessageMatcherMessageSecurityMetadataSourceRegistry#wampDestPathMatcher(PathMatcher)}public WampMessageSecurityMetadataSourceRegistry.Constraint wampPublishDestMatchers(String... patterns)
List of WampDestinationMessageMatcher instances that match
on WampMessageType.PUBLISH. If no destination is found on the Message, then
the Matcher returns false.patterns - the patterns to create WampDestinationMessageMatcher from.
Uses MessageSecurityMetadataSourceRegistry#wampDestPathMatcher(PathMatcher)
.WampMessageSecurityMetadataSourceRegistry.Constraint that is associated to the MessageMatcherMessageSecurityMetadataSourceRegistry#wampDestPathMatcher(PathMatcher)}public WampMessageSecurityMetadataSourceRegistry.Constraint wampSubscribeDestMatchers(String... patterns)
List of WampDestinationMessageMatcher instances that match
on WampMessageType.SUBSCRIBE. If no destination is found on the Message,
then the Matcher returns false.patterns - the patterns to create WampDestinationMessageMatcher from.
Uses MessageSecurityMetadataSourceRegistry#wampDestPathMatcher(PathMatcher)
.WampMessageSecurityMetadataSourceRegistry.Constraint that is associated to the MessageMatcherMessageSecurityMetadataSourceRegistry#wampDestPathMatcher(PathMatcher)}public WampMessageSecurityMetadataSourceRegistry.Constraint wampUnsubscribeDestMatchers(String... patterns)
List of WampDestinationMessageMatcher instances that match
on WampMessageType.UNSUBSCRIBE. If no destination is found on the Message,
then the Matcher returns false.patterns - the patterns to create WampDestinationMessageMatcher from.
Uses MessageSecurityMetadataSourceRegistry#wampDestPathMatcher(PathMatcher)
.WampMessageSecurityMetadataSourceRegistry.Constraint that is associated to the MessageMatcherMessageSecurityMetadataSourceRegistry#wampDestPathMatcher(PathMatcher)}public WampMessageSecurityMetadataSourceRegistry wampDestPathMatcher(org.springframework.util.PathMatcher matcher)
PathMatcher to be used with the
MessageSecurityMetadataSourceRegistry#wampDestMatchers(String...). The
default is to use the default constructor of AntPathMatcher.pathMatcher - the PathMatcher to use. Cannot be null.MessageSecurityMetadataSourceRegistry for further
customization.public WampMessageSecurityMetadataSourceRegistry.Constraint matchers(org.springframework.security.messaging.util.matcher.MessageMatcher<?>... matchers)
List of MessageMatcher instances to a security expression.matchers - the MessageMatcher instances to map.WampMessageSecurityMetadataSourceRegistry.Constraint that is associated to the MessageMatcher
instancesprotected org.springframework.security.messaging.access.intercept.MessageSecurityMetadataSource createMetadataSource()
MessageSecurityMetadataSource.
This is not exposed so as not to confuse users of the API, which should never invoke this method.
MessageSecurityMetadataSource to useprotected boolean containsMapping()
This is not exposed so as not to confuse users of the API, which should never need to invoke this method.
Copyright © 2015–2017. All rights reserved.