SEC-727: Ensure SecurityConfig cannot be constructed unsafely; also update SecurityConfigTests to JUnit 4.

This commit is contained in:
Ben Alex
2008-03-21 02:15:47 +00:00
parent 119cc9ff04
commit 16ea8faa0d
2 changed files with 34 additions and 39 deletions

View File

@@ -15,6 +15,8 @@
package org.springframework.security;
import org.springframework.util.Assert;
/**
* Stores a {@link ConfigAttribute} as a <code>String</code>.
*
@@ -29,6 +31,7 @@ public class SecurityConfig implements ConfigAttribute {
//~ Constructors ===================================================================================================
public SecurityConfig(String config) {
Assert.hasText(config, "You must provide a configuration attribute");
this.attrib = config;
}