You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2007/11/06 03:50:47 UTC

svn commit: r592229 - /maven/artifact/trunk/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java

Author: jvanzyl
Date: Mon Nov  5 18:50:46 2007
New Revision: 592229

URL: http://svn.apache.org/viewvc?rev=592229&view=rev
Log:
o adding compatibility method for authentication

Modified:
    maven/artifact/trunk/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java

Modified: maven/artifact/trunk/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
URL: http://svn.apache.org/viewvc/maven/artifact/trunk/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java?rev=592229&r1=592228&r2=592229&view=diff
==============================================================================
--- maven/artifact/trunk/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java (original)
+++ maven/artifact/trunk/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java Mon Nov  5 18:50:46 2007
@@ -765,7 +765,28 @@
         this.downloadMonitor = downloadMonitor;
     }
 
+    // We are leaving this method here so that we can attempt to use the new maven-artifact
+    // library from the 2.0.x code so that we aren't maintaining two lines of code
+    // for the artifact management.
     public void addAuthenticationInfo( String repositoryId
+									, String username
+									, String password
+									, String privateKey
+									, String passphrase
+    								)
+    {
+        AuthenticationInfo authInfo = new AuthenticationInfo();
+        authInfo.setUserName( username );
+        authInfo.setPassword( password );
+        authInfo.setPrivateKey( privateKey );
+        authInfo.setPassphrase( passphrase );
+
+        authenticationInfoMap.put( repositoryId, authInfo );
+    }
+
+    // This is the new way of handling authentication that will allow us to help users setup 
+    // authentication requirements.
+    public void addAuthenticationCredentials( String repositoryId
 									, String username
 									, String password
 									, String privateKey