You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2014/09/24 21:53:49 UTC
svn commit: r1627404 -
/tomcat/trunk/java/org/apache/tomcat/buildutil/SignCode.java
Author: markt
Date: Wed Sep 24 19:53:48 2014
New Revision: 1627404
URL: http://svn.apache.org/r1627404
Log:
Download signed production binary from production not test.
Modified:
tomcat/trunk/java/org/apache/tomcat/buildutil/SignCode.java
Modified: tomcat/trunk/java/org/apache/tomcat/buildutil/SignCode.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/buildutil/SignCode.java?rev=1627404&r1=1627403&r2=1627404&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/buildutil/SignCode.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/buildutil/SignCode.java Wed Sep 24 19:53:48 2014
@@ -22,6 +22,7 @@ import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
+import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
@@ -53,12 +54,19 @@ import org.w3c.dom.NodeList;
*/
public class SignCode extends Task {
+ private static final URL SIGNING_SERVICE_URL;
+
private static final String NS = "cod";
private static final MessageFactory SOAP_MSG_FACTORY;
static {
try {
+ SIGNING_SERVICE_URL = new URL("https://api.ws.symantec.com/webtrust/SigningService");
+ } catch (MalformedURLException e) {
+ throw new IllegalArgumentException(e);
+ }
+ try {
SOAP_MSG_FACTORY = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
} catch (SOAPException e) {
throw new IllegalArgumentException(e);
@@ -173,10 +181,9 @@ public class SignCode extends Task {
// Send the message
SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
SOAPConnection connection = soapConnectionFactory.createConnection();
- URL endpoint = new URL("https://api.ws.symantec.com/webtrust/SigningService");
log("Sending siging request to server and waiting for response");
- SOAPMessage response = connection.call(message, endpoint);
+ SOAPMessage response = connection.call(message, SIGNING_SERVICE_URL);
log("Processing response");
SOAPElement responseBody = response.getSOAPBody();
@@ -246,10 +253,9 @@ public class SignCode extends Task {
// Send the message
SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
SOAPConnection connection = soapConnectionFactory.createConnection();
- URL endpoint = new URL("https://test-api.ws.symantec.com:443/webtrust/SigningService");
log("Requesting signed files from server and waiting for response");
- SOAPMessage response = connection.call(message, endpoint);
+ SOAPMessage response = connection.call(message, SIGNING_SERVICE_URL);
log("Processing response");
SOAPElement responseBody = response.getSOAPBody();
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org