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

@Deprecated public final class DefaultMessageSecurityMetadataSource extends Object implements MessageSecurityMetadataSource
A default implementation of 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.

Since:
4.0
See Also:
  • Constructor Details

    • DefaultMessageSecurityMetadataSource

      public DefaultMessageSecurityMetadataSource(LinkedHashMap<MessageMatcher<?>,Collection<org.springframework.security.access.ConfigAttribute>> messageMap)
      Deprecated.
  • Method Details

    • getAttributes

      public Collection<org.springframework.security.access.ConfigAttribute> getAttributes(Object object) throws IllegalArgumentException
      Deprecated.
      Specified by:
      getAttributes in interface org.springframework.security.access.SecurityMetadataSource
      Throws:
      IllegalArgumentException
    • getAllConfigAttributes

      public Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
      Deprecated.
      Specified by:
      getAllConfigAttributes in interface org.springframework.security.access.SecurityMetadataSource
    • supports

      public boolean supports(Class<?> clazz)
      Deprecated.
      Specified by:
      supports in interface org.springframework.security.access.SecurityMetadataSource