You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by tc...@apache.org on 2013/11/12 17:08:35 UTC
svn commit: r1541126 -
/maven/plugins/trunk/maven-jarsigner-plugin/src/main/java/org/apache/maven/plugins/jarsigner/AbstractJarsignerMojo.java
Author: tchemit
Date: Tue Nov 12 16:08:35 2013
New Revision: 1541126
URL: http://svn.apache.org/r1541126
Log:
MJARSIGNER-26 - Jar Signer does not support protected authentication path
Submitted by: Michael Gruebsch
Modified:
maven/plugins/trunk/maven-jarsigner-plugin/src/main/java/org/apache/maven/plugins/jarsigner/AbstractJarsignerMojo.java
Modified: maven/plugins/trunk/maven-jarsigner-plugin/src/main/java/org/apache/maven/plugins/jarsigner/AbstractJarsignerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jarsigner-plugin/src/main/java/org/apache/maven/plugins/jarsigner/AbstractJarsignerMojo.java?rev=1541126&r1=1541125&r2=1541126&view=diff
==============================================================================
--- maven/plugins/trunk/maven-jarsigner-plugin/src/main/java/org/apache/maven/plugins/jarsigner/AbstractJarsignerMojo.java (original)
+++ maven/plugins/trunk/maven-jarsigner-plugin/src/main/java/org/apache/maven/plugins/jarsigner/AbstractJarsignerMojo.java Tue Nov 12 16:08:35 2013
@@ -129,6 +129,15 @@ public abstract class AbstractJarsignerM
private boolean processAttachedArtifacts;
/**
+ * Must be set to true if the password must be given via a protected
+ * authentication path such as a dedicated PIN reader.
+ *
+ * @since 1.3
+ */
+ @Parameter( property = "jarsigner.protectedAuthenticationPath", defaultValue = "false" )
+ private boolean protectedAuthenticationPath;
+
+ /**
* Controls processing of project attachments.
*
* @deprecated As of version 1.1 in favor of the new parameter <code>processAttachedArtifacts</code>.
@@ -388,6 +397,7 @@ public abstract class AbstractJarsignerM
request.setWorkingDirectory( workingDirectory );
request.setMaxMemory( maxMemory );
request.setArguments( arguments );
+ request.setProtectedAuthenticationPath( protectedAuthenticationPath );
try
{