public final class SecurityNamespaceHandler extends Object implements org.springframework.beans.factory.xml.NamespaceHandler
org.springframework.security.config.SecurityNamespaceHandler
, so dass anstatt des
der Klasse
org.springframework.security.config.ldap.LdapUserServiceBeanDefinitionParser
zum
Parsen des Elements "security" mit dem Namespace
http://www.springframework.org/schema/security
die eigene Implementierung
de.fraunhofer.igd.klarschiff.service.security.LdapServerBeanDefinitionParser
verwendet wird.
Parses elements from the "security" namespace
(http://www.springframework.org/schema/security).Modifier and Type | Field and Description |
---|---|
private static String |
FILTER_CHAIN_PROXY_CLASSNAME |
private org.springframework.beans.factory.xml.BeanDefinitionDecorator |
filterChainMapBDD |
private org.springframework.beans.factory.xml.BeanDefinitionDecorator |
interceptMethodsBDD |
private org.apache.commons.logging.Log |
logger |
private static String |
MESSAGE_CLASSNAME |
private Map<String,org.springframework.beans.factory.xml.BeanDefinitionParser> |
parsers |
Constructor and Description |
---|
SecurityNamespaceHandler() |
Modifier and Type | Method and Description |
---|---|
org.springframework.beans.factory.config.BeanDefinitionHolder |
decorate(Node node,
org.springframework.beans.factory.config.BeanDefinitionHolder definition,
org.springframework.beans.factory.xml.ParserContext pc) |
void |
init() |
private void |
loadParsers()
In der Methode wird als Parser für das Element
ldap-server die eigene
Implementierung
de.fraunhofer.igd.klarschiff.service.security.LdapServerBeanDefinitionParser statt
die Implementierung
org.springframework.security.config.ldap.LdapUserServiceBeanDefinitionParser
registiert. |
private boolean |
matchesVersionInternal(Element element) |
private boolean |
namespaceMatchesVersion(Element element)
Check that the schema location declared in the source file being parsed matches the
Spring Security version.
|
org.springframework.beans.factory.config.BeanDefinition |
parse(Element element,
org.springframework.beans.factory.xml.ParserContext pc) |
private void |
reportMissingWebClasses(String nodeName,
org.springframework.beans.factory.xml.ParserContext pc,
Node node) |
private void |
reportUnsupportedNodeType(String name,
org.springframework.beans.factory.xml.ParserContext pc,
Node node) |
private static final String FILTER_CHAIN_PROXY_CLASSNAME
private static final String MESSAGE_CLASSNAME
private final org.apache.commons.logging.Log logger
private final Map<String,org.springframework.beans.factory.xml.BeanDefinitionParser> parsers
private final org.springframework.beans.factory.xml.BeanDefinitionDecorator interceptMethodsBDD
private org.springframework.beans.factory.xml.BeanDefinitionDecorator filterChainMapBDD
public org.springframework.beans.factory.config.BeanDefinition parse(Element element, org.springframework.beans.factory.xml.ParserContext pc)
parse
in interface org.springframework.beans.factory.xml.NamespaceHandler
public org.springframework.beans.factory.config.BeanDefinitionHolder decorate(Node node, org.springframework.beans.factory.config.BeanDefinitionHolder definition, org.springframework.beans.factory.xml.ParserContext pc)
decorate
in interface org.springframework.beans.factory.xml.NamespaceHandler
private void reportUnsupportedNodeType(String name, org.springframework.beans.factory.xml.ParserContext pc, Node node)
private void reportMissingWebClasses(String nodeName, org.springframework.beans.factory.xml.ParserContext pc, Node node)
public void init()
init
in interface org.springframework.beans.factory.xml.NamespaceHandler
private void loadParsers()
ldap-server
die eigene
Implementierung
de.fraunhofer.igd.klarschiff.service.security.LdapServerBeanDefinitionParser
statt
die Implementierung
org.springframework.security.config.ldap.LdapUserServiceBeanDefinitionParser
registiert.private boolean namespaceMatchesVersion(Element element)
There are also differences between 3.0 and 3.1 which are sufficient that we report using 3.0 as an error too. It might be an error to declare spring-security.xsd as an alias, but you are only going to find that out when one of the sub parsers breaks.
element
- the element that is to be parsed nextprivate boolean matchesVersionInternal(Element element)
Copyright © 2019. All rights reserved.