public class MessageSecurityMetadataSourceRegistry extends Object
MessageMatcher
to the security expressions.Modifier and Type | Class and Description |
---|---|
class |
MessageSecurityMetadataSourceRegistry.Constraint
Represents the security constraint to be applied to the
MessageMatcher instances. |
Constructor and Description |
---|
MessageSecurityMetadataSourceRegistry() |
Modifier and Type | Method and Description |
---|---|
MessageSecurityMetadataSourceRegistry.Constraint |
anyMessage()
Maps any
Message to a security expression. |
protected MessageSecurityMetadataSource |
createMetadataSource()
Allows subclasses to create creating a
MessageSecurityMetadataSource . |
MessageSecurityMetadataSourceRegistry.Constraint |
destinationMatchers(String... patterns)
Maps a
List of SimpDestinationMessageMatcher instances. |
MessageSecurityMetadataSourceRegistry.Constraint |
matchers(MessageMatcher<?>... matchers)
Maps a
List of MessageMatcher instances to a security expression. |
MessageSecurityMetadataSourceRegistry |
pathMatcher(PathMatcher pathMatcher)
The
PathMatcher to be used with the destinationMatchers(String...) . |
public MessageSecurityMetadataSourceRegistry()
public MessageSecurityMetadataSourceRegistry.Constraint anyMessage()
Message
to a security expression.public MessageSecurityMetadataSourceRegistry.Constraint destinationMatchers(String... patterns)
List
of SimpDestinationMessageMatcher
instances.patterns
- the patterns to create SimpDestinationMessageMatcher
from. Uses pathMatcher(PathMatcher)
.MessageSecurityMetadataSourceRegistry.Constraint
that is associated to the MessageMatcher
MessageSecurityMetadataSourceRegistry#pathMatcher(PathMatcher)}
public MessageSecurityMetadataSourceRegistry pathMatcher(PathMatcher pathMatcher)
PathMatcher
to be used with the destinationMatchers(String...)
.
The default is to use the default constructor of AntPathMatcher
.pathMatcher
- the PathMatcher
to use. Cannot be null.MessageSecurityMetadataSourceRegistry
for further customization.public MessageSecurityMetadataSourceRegistry.Constraint matchers(MessageMatcher<?>... matchers)
List
of MessageMatcher
instances to a security expression.matchers
- the MessageMatcher
instances to map.MessageSecurityMetadataSourceRegistry.Constraint
that is associated to the MessageMatcher
instancesprotected MessageSecurityMetadataSource createMetadataSource()
MessageSecurityMetadataSource
.
This is not exposed so as not to confuse users of the API, which should never invoke this method.
MessageSecurityMetadataSource
to use