You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sc...@apache.org on 2016/02/16 23:21:55 UTC

maven git commit: o Updated 'DefaultSettingsDecrypter' to allow configuration to be set programmatically.

Repository: maven
Updated Branches:
  refs/heads/master fbf8b544d -> 8dea99f97


o Updated 'DefaultSettingsDecrypter' to allow configuration to be set programmatically.


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/8dea99f9
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/8dea99f9
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/8dea99f9

Branch: refs/heads/master
Commit: 8dea99f97070ce27e4a286646b135832d5e941d3
Parents: fbf8b54
Author: Christian Schulte <sc...@apache.org>
Authored: Tue Feb 16 23:13:42 2016 +0100
Committer: Christian Schulte <sc...@apache.org>
Committed: Tue Feb 16 23:21:36 2016 +0100

----------------------------------------------------------------------
 .../maven/settings/crypto/DefaultSettingsDecrypter.java   | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/8dea99f9/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/DefaultSettingsDecrypter.java
----------------------------------------------------------------------
diff --git a/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/DefaultSettingsDecrypter.java b/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/DefaultSettingsDecrypter.java
index 671a20d..b09e8cd 100644
--- a/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/DefaultSettingsDecrypter.java
+++ b/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/DefaultSettingsDecrypter.java
@@ -21,6 +21,7 @@ package org.apache.maven.settings.crypto;
 
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 
 import org.apache.maven.settings.Proxy;
 import org.apache.maven.settings.Server;
@@ -45,6 +46,15 @@ public class DefaultSettingsDecrypter
     @Requirement( hint = "maven" )
     private SecDispatcher securityDispatcher;
 
+    /**
+     * @since 3.4
+     */
+    public DefaultSettingsDecrypter setSecurityDispatcher( final SecDispatcher value )
+    {
+        this.securityDispatcher = Objects.requireNonNull( value );
+        return this;
+    }
+
     @Override
     public SettingsDecryptionResult decrypt( SettingsDecryptionRequest request )
     {