public class EndpointSecurityMetadataSource extends Object implements SecurityMetadataSource
SecurityMetadataSource for BlazeDS Endpoints.
This implementation is capable of securing Endpoints both by their channel id, and by their URL pattern.
| Constructor and Description |
|---|
EndpointSecurityMetadataSource(LinkedHashMap<RequestMatcher,Collection<ConfigAttribute>> requestMap) |
EndpointSecurityMetadataSource(LinkedHashMap<RequestMatcher,Collection<ConfigAttribute>> requestMap,
HashMap<String,Collection<ConfigAttribute>> endpointMap)
Builds the internal request map from the supplied map, and stores the endpoint map for matching by channel id.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ConfigAttribute> |
getAllConfigAttributes() |
Collection<ConfigAttribute> |
getAttributes(Object object) |
boolean |
supports(Class<?> clazz) |
public EndpointSecurityMetadataSource(LinkedHashMap<RequestMatcher,Collection<ConfigAttribute>> requestMap)
DefaultFilterInvocationSecurityMetadataSource#DefaultFilterInvocationSecurityMetadataSource(UrlMatcher, LinkedHashMap)public EndpointSecurityMetadataSource(LinkedHashMap<RequestMatcher,Collection<ConfigAttribute>> requestMap, HashMap<String,Collection<ConfigAttribute>> endpointMap)
endpointMap - map of <String, Collection<ConfigAttribute>>DefaultFilterInvocationSecurityMetadataSource#DefaultFilterInvocationSecurityMetadataSource(UrlMatcher, LinkedHashMap)public Collection<ConfigAttribute> getAttributes(Object object) throws IllegalArgumentException
getAttributes in interface SecurityMetadataSourceIllegalArgumentExceptionpublic Collection<ConfigAttribute> getAllConfigAttributes()
getAllConfigAttributes in interface SecurityMetadataSourcepublic boolean supports(Class<?> clazz)
supports in interface SecurityMetadataSourceCopyright © 2014. All rights reserved.