]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1107] change to base exception since we will also get the MustChangePasswordExce...
authorBrett Porter <brett@apache.org>
Thu, 12 Mar 2009 03:46:45 +0000 (03:46 +0000)
committerBrett Porter <brett@apache.org>
Thu, 12 Mar 2009 03:46:45 +0000 (03:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@752762 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/XmlRpcAuthenticator.java

index 2a72ab6be1d83932f611b0a79d1e6d93f2179e68..19f8544618d77f5665277af4a8d15573e72afed8 100644 (file)
@@ -32,7 +32,7 @@ import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authentication.PasswordBasedAuthenticationDataSource;\r
 import org.codehaus.plexus.redback.authorization.AuthorizationException;\r
 import org.codehaus.plexus.redback.authorization.AuthorizationResult;\r
-import org.codehaus.plexus.redback.policy.AccountLockedException;\r
+import org.codehaus.plexus.redback.policy.PolicyViolationException;\r
 import org.codehaus.plexus.redback.system.SecuritySession;\r
 import org.codehaus.plexus.redback.system.SecuritySystem;\r
 import org.codehaus.plexus.redback.users.UserNotFoundException;\r
@@ -86,7 +86,7 @@ public class XmlRpcAuthenticator
         {\r
             return securitySystem.authenticate( authenticationDataSource );\r
         }\r
-        catch ( AccountLockedException e )\r
+        catch ( PolicyViolationException e )\r
         {\r
             throw new XmlRpcException( 401, e.getMessage(), e );\r
         }\r