diff --git a/core/src/main/java/org/springframework/security/config/RepositoryBeanDefinitionParser.java b/core/src/main/java/org/springframework/security/config/RepositoryBeanDefinitionParser.java
index 7ad30825a3..320629fa81 100644
--- a/core/src/main/java/org/springframework/security/config/RepositoryBeanDefinitionParser.java
+++ b/core/src/main/java/org/springframework/security/config/RepositoryBeanDefinitionParser.java
@@ -27,19 +27,19 @@ import org.w3c.dom.Element;
class RepositoryBeanDefinitionParser implements BeanDefinitionParser {
static final String ATT_DATA_SOURCE = "data-source";
- static final String ATT_ID = "id";
+ static final String ATT_REF = "ref";
static final String ATT_CREATE_PROVIDER = "create-provider";
static final String DEF_CREATE_PROVIDER = "true";
static final String ATT_HASH = "hash";
static final String DEF_HASH_PLAINTEXT = "plaintext";
- static final String OPT_HASH_SHA_HEX = "sha:hex";
- static final String OPT_HASH_SHA_BASE64 = "sha:base64";
- static final String OPT_HASH_MD4_HEX = "md4:hex";
- static final String OPT_HASH_MD4_BASE64 = "md4:base64";
- static final String OPT_HASH_MD5_HEX = "md5:hex";
- static final String OPT_HASH_MD5_BASE64 = "md5:base64";
+ static final String OPT_HASH_SHA_HEX = "sha-hex";
+ static final String OPT_HASH_SHA_BASE64 = "sha-base64";
+ static final String OPT_HASH_MD4_HEX = "md4-hex";
+ static final String OPT_HASH_MD4_BASE64 = "md4-base64";
+ static final String OPT_HASH_MD5_HEX = "md5-hex";
+ static final String OPT_HASH_MD5_BASE64 = "md5-base64";
public BeanDefinition parse(Element element, ParserContext parserContext) {
boolean createProvider = true;
@@ -73,8 +73,8 @@ class RepositoryBeanDefinitionParser implements BeanDefinitionParser {
}
if (customUserServiceElt != null) {
- String id = customUserServiceElt.getAttribute(ATT_ID);
- BeanDefinition userDetailsService = parserContext.getRegistry().getBeanDefinition(id);
+ String ref = customUserServiceElt.getAttribute(ATT_REF);
+ BeanDefinition userDetailsService = parserContext.getRegistry().getBeanDefinition(ref);
createDaoAuthenticationProviderIfRequired(createProvider, customUserServiceElt.getAttribute(ATT_HASH), userDetailsService, parserContext);
}
diff --git a/core/src/main/resources/org/springframework/security/config/spring-security-2.0.rnc b/core/src/main/resources/org/springframework/security/config/spring-security-2.0.rnc
index ed2811ab3c..39edb72b38 100644
--- a/core/src/main/resources/org/springframework/security/config/spring-security-2.0.rnc
+++ b/core/src/main/resources/org/springframework/security/config/spring-security-2.0.rnc
@@ -12,7 +12,7 @@ start = http | ldap | repository
hash =
## Defines the type of hashing used on user passwords. If unspecified, "plaintext" is nominated, which indicates that the passwords are not hashed. We recommend strongly against using MD4, as it is a very weak hashing algorithm.
- attribute hash {"plaintext" | "sha:hex" | "sha:base64" | "md5:hex" | "md5:base64" | "md4:hex" | "md4:base64"}
+ attribute hash {"plaintext" | "sha-hex" | "sha-base64" | "md5-hex" | "md5-base64" | "md4-hex" | "md4-base64"}
path-type =
## Defines the type of pattern used to specify URL paths (either JDK 1.4-compatible regular expressions, or Apache Ant expressions). Defaults to "ant" if unspecified.
@@ -224,5 +224,5 @@ custom-user-service.attlist &=
hash?
custom-user-service.attlist &=
## The bean ID of your custom UserDetailsService implementation.
- attribute id {xsd:string}
+ attribute ref {xsd:string}
diff --git a/core/src/main/resources/org/springframework/security/config/spring-security-2.0.xsd b/core/src/main/resources/org/springframework/security/config/spring-security-2.0.xsd
index 3e03760c7f..e7861059ce 100644
--- a/core/src/main/resources/org/springframework/security/config/spring-security-2.0.xsd
+++ b/core/src/main/resources/org/springframework/security/config/spring-security-2.0.xsd
@@ -9,12 +9,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -413,12 +413,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -465,12 +465,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -496,16 +496,16 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
+
The bean ID of your custom UserDetailsService implementation.
diff --git a/core/src/test/resources/org/springframework/security/config/custom-user-details.xml b/core/src/test/resources/org/springframework/security/config/custom-user-details.xml
index e7e7d446d8..69da51c164 100644
--- a/core/src/test/resources/org/springframework/security/config/custom-user-details.xml
+++ b/core/src/test/resources/org/springframework/security/config/custom-user-details.xml
@@ -9,7 +9,7 @@ http://www.springframework.org/schema/security http://www.springframework.org/sc
-
+
\ No newline at end of file
diff --git a/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml b/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml
index 5ac9310740..1c6d2466b6 100644
--- a/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml
+++ b/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml
@@ -31,7 +31,7 @@
-
+