Spring BlazeDS Integration

org.springframework.flex.security3
Class EndpointSecurityMetadataSource

java.lang.Object
  extended by org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource
      extended by org.springframework.flex.security3.EndpointSecurityMetadataSource
All Implemented Interfaces:
AopInfrastructureBean, org.springframework.security.access.SecurityMetadataSource, org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource

public class EndpointSecurityMetadataSource
extends org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource

Implementation of SecurityMetadataSource for BlazeDS Endpoints.

This implementation is capable of securing Endpoints both by their channel id, and by their URL pattern.

Author:
Jeremy Grelle

Field Summary
 
Fields inherited from class org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource
logger
 
Constructor Summary
EndpointSecurityMetadataSource(org.springframework.security.web.util.UrlMatcher urlMatcher, LinkedHashMap<org.springframework.security.web.access.intercept.RequestKey,Collection<org.springframework.security.access.ConfigAttribute>> requestMap)
           
EndpointSecurityMetadataSource(org.springframework.security.web.util.UrlMatcher urlMatcher, LinkedHashMap<org.springframework.security.web.access.intercept.RequestKey,Collection<org.springframework.security.access.ConfigAttribute>> requestMap, HashMap<String,Collection<org.springframework.security.access.ConfigAttribute>> endpointMap)
          Builds the internal request map from the supplied map, and stores the endpoint map for matching by channel id.
 
Method Summary
 Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
          
 Collection<org.springframework.security.access.ConfigAttribute> getAttributes(Object object)
          
 boolean supports(Class<?> clazz)
          
 
Methods inherited from class org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource
getUrlMatcher, isConvertUrlToLowercaseBeforeComparison, lookupAttributes, setStripQueryStringFromUrls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointSecurityMetadataSource

public EndpointSecurityMetadataSource(org.springframework.security.web.util.UrlMatcher urlMatcher,
                                      LinkedHashMap<org.springframework.security.web.access.intercept.RequestKey,Collection<org.springframework.security.access.ConfigAttribute>> requestMap)
See Also:
DefaultFilterInvocationDefinitionSource#DefaultFilterInvocationDefinitionSource(UrlMatcher, LinkedHashMap)

EndpointSecurityMetadataSource

public EndpointSecurityMetadataSource(org.springframework.security.web.util.UrlMatcher urlMatcher,
                                      LinkedHashMap<org.springframework.security.web.access.intercept.RequestKey,Collection<org.springframework.security.access.ConfigAttribute>> requestMap,
                                      HashMap<String,Collection<org.springframework.security.access.ConfigAttribute>> endpointMap)
Builds the internal request map from the supplied map, and stores the endpoint map for matching by channel id.

Parameters:
endpointMap - map of >
See Also:
DefaultFilterInvocationDefinitionSource#DefaultFilterInvocationDefinitionSource(UrlMatcher, LinkedHashMap)
Method Detail

getAttributes

public Collection<org.springframework.security.access.ConfigAttribute> getAttributes(Object object)
                                                                              throws IllegalArgumentException

Specified by:
getAttributes in interface org.springframework.security.access.SecurityMetadataSource
Overrides:
getAttributes in class org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource
Throws:
IllegalArgumentException

getAllConfigAttributes

public Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()

Specified by:
getAllConfigAttributes in interface org.springframework.security.access.SecurityMetadataSource
Overrides:
getAllConfigAttributes in class org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource

supports

public boolean supports(Class<?> clazz)

Specified by:
supports in interface org.springframework.security.access.SecurityMetadataSource
Overrides:
supports in class org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource

Spring BlazeDS Integration

Copyright © 2011. All Rights Reserved.