|
@@ -15,9 +15,6 @@
|
|
|
|
|
|
package org.springframework.security.providers.siteminder;
|
|
package org.springframework.security.providers.siteminder;
|
|
|
|
|
|
-import java.util.HashMap;
|
|
|
|
-import java.util.Map;
|
|
|
|
-
|
|
|
|
import junit.framework.TestCase;
|
|
import junit.framework.TestCase;
|
|
|
|
|
|
import org.springframework.security.AccountExpiredException;
|
|
import org.springframework.security.AccountExpiredException;
|
|
@@ -31,7 +28,7 @@ import org.springframework.security.GrantedAuthorityImpl;
|
|
import org.springframework.security.LockedException;
|
|
import org.springframework.security.LockedException;
|
|
import org.springframework.security.providers.TestingAuthenticationToken;
|
|
import org.springframework.security.providers.TestingAuthenticationToken;
|
|
import org.springframework.security.providers.UsernamePasswordAuthenticationToken;
|
|
import org.springframework.security.providers.UsernamePasswordAuthenticationToken;
|
|
-import org.springframework.security.providers.dao.UserCache;
|
|
|
|
|
|
+import org.springframework.security.providers.dao.MockUserCache;
|
|
import org.springframework.security.providers.dao.cache.EhCacheBasedUserCache;
|
|
import org.springframework.security.providers.dao.cache.EhCacheBasedUserCache;
|
|
import org.springframework.security.providers.dao.cache.NullUserCache;
|
|
import org.springframework.security.providers.dao.cache.NullUserCache;
|
|
import org.springframework.security.userdetails.User;
|
|
import org.springframework.security.userdetails.User;
|
|
@@ -404,19 +401,4 @@ public class SiteminderAuthenticationProviderTests extends TestCase {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- private class MockUserCache implements UserCache {
|
|
|
|
- private Map cache = new HashMap();
|
|
|
|
-
|
|
|
|
- public UserDetails getUserFromCache(String username) {
|
|
|
|
- return (User) cache.get(username);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void putUserInCache(UserDetails user) {
|
|
|
|
- cache.put(user.getUsername(), user);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void removeUserFromCache(String username) {
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|