public final class DefaultMessageSecurityMetadataSource extends java.lang.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(java.util.LinkedHashMap<MessageMatcher<?>,java.util.Collection<org.springframework.security.access.ConfigAttribute>> messageMap) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<org.springframework.security.access.ConfigAttribute> |
getAllConfigAttributes() |
java.util.Collection<org.springframework.security.access.ConfigAttribute> |
getAttributes(java.lang.Object object) |
boolean |
supports(java.lang.Class<?> clazz) |
public DefaultMessageSecurityMetadataSource(java.util.LinkedHashMap<MessageMatcher<?>,java.util.Collection<org.springframework.security.access.ConfigAttribute>> messageMap)
public java.util.Collection<org.springframework.security.access.ConfigAttribute> getAttributes(java.lang.Object object)
throws java.lang.IllegalArgumentException
getAttributes in interface org.springframework.security.access.SecurityMetadataSourcejava.lang.IllegalArgumentExceptionpublic java.util.Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
getAllConfigAttributes in interface org.springframework.security.access.SecurityMetadataSourcepublic boolean supports(java.lang.Class<?> clazz)
supports in interface org.springframework.security.access.SecurityMetadataSource