Class DefaultMessageSecurityMetadataSource
- java.lang.Object
-
- org.springframework.security.messaging.access.intercept.DefaultMessageSecurityMetadataSource
-
- All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean
,org.springframework.security.access.SecurityMetadataSource
,MessageSecurityMetadataSource
public final class DefaultMessageSecurityMetadataSource extends java.lang.Object implements MessageSecurityMetadataSource
A default implementation ofMessageSecurityMetadataSource
that looks up theConfigAttribute
instances using aMessageMatcher
.Each entry is considered in order. The first entry that matches, the corresponding
Collection<ConfigAttribute>
is returned.- Since:
- 4.0
- See Also:
ChannelSecurityInterceptor
,ExpressionBasedMessageSecurityMetadataSourceFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultMessageSecurityMetadataSource(java.util.LinkedHashMap<MessageMatcher<?>,java.util.Collection<org.springframework.security.access.ConfigAttribute>> messageMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
DefaultMessageSecurityMetadataSource
public DefaultMessageSecurityMetadataSource(java.util.LinkedHashMap<MessageMatcher<?>,java.util.Collection<org.springframework.security.access.ConfigAttribute>> messageMap)
-
-
Method Detail
-
getAttributes
public java.util.Collection<org.springframework.security.access.ConfigAttribute> getAttributes(java.lang.Object object) throws java.lang.IllegalArgumentException
- Specified by:
getAttributes
in interfaceorg.springframework.security.access.SecurityMetadataSource
- Throws:
java.lang.IllegalArgumentException
-
getAllConfigAttributes
public java.util.Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
- Specified by:
getAllConfigAttributes
in interfaceorg.springframework.security.access.SecurityMetadataSource
-
supports
public boolean supports(java.lang.Class<?> clazz)
- Specified by:
supports
in interfaceorg.springframework.security.access.SecurityMetadataSource
-
-