@ -158,7 +158,7 @@ public class JaasAuthenticationProvider implements AuthenticationProvider, Appli
@@ -158,7 +158,7 @@ public class JaasAuthenticationProvider implements AuthenticationProvider, Appli
Assert.hasLength(loginContextName,"loginContextName must be set on "+getClass());
configureJaas(loginConfig);
Assert.notNull(Configuration.getConfiguration(),
"As per http://java.sun.com/j2se/1.5.0/docs/api/javax/security/auth/login/Configuration.html "
+"\"If a Configuration object was set via the Configuration.setConfiguration method, then that object is "
@ -189,13 +189,9 @@ public class JaasAuthenticationProvider implements AuthenticationProvider, Appli
@@ -189,13 +189,9 @@ public class JaasAuthenticationProvider implements AuthenticationProvider, Appli
//Attempt to login the user, the LoginContext will call our InternalCallbackHandler at this point.
loginContext.login();
//create a set to hold the authorities, and add any that have already been applied.
@ -138,13 +138,7 @@ public class JaasAuthenticationProviderTests extends TestCase {
@@ -138,13 +138,7 @@ public class JaasAuthenticationProviderTests extends TestCase {
@ -161,10 +155,6 @@ public class JaasAuthenticationProviderTests extends TestCase {
@@ -161,10 +155,6 @@ public class JaasAuthenticationProviderTests extends TestCase {
assertTrue("GrantedAuthorities should contain ROLE_TEST2",list.contains(newGrantedAuthorityImpl("ROLE_TEST2")));
assertTrue("GrantedAuthorities should contain ROLE_1",list.contains(role1));
assertTrue("GrantedAuthorities should contain ROLE_2",list.contains(role2));