public final class DefaultMessageSecurityMetadataSource extends Object implements MessageSecurityMetadataSource
MessageSecurityMetadataSource that looks up the ConfigAttribute instances
using a MessageMatcher.
Each entry is considered in order. The first entry that matches, the corresponding Collection<ConfigAttribute>
is returned.
ChannelSecurityInterceptor,
ExpressionBasedMessageSecurityMetadataSourceFactory| Constructor and Description |
|---|
DefaultMessageSecurityMetadataSource(LinkedHashMap<MessageMatcher<?>,Collection<org.springframework.security.access.ConfigAttribute>> messageMap) |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.springframework.security.access.ConfigAttribute> |
getAllConfigAttributes() |
Collection<org.springframework.security.access.ConfigAttribute> |
getAttributes(Object object) |
boolean |
supports(Class<?> clazz) |
public DefaultMessageSecurityMetadataSource(LinkedHashMap<MessageMatcher<?>,Collection<org.springframework.security.access.ConfigAttribute>> messageMap)
public Collection<org.springframework.security.access.ConfigAttribute> getAttributes(Object object) throws IllegalArgumentException
getAttributes in interface org.springframework.security.access.SecurityMetadataSourceIllegalArgumentExceptionpublic Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
getAllConfigAttributes in interface org.springframework.security.access.SecurityMetadataSourcepublic boolean supports(Class<?> clazz)
supports in interface org.springframework.security.access.SecurityMetadataSource