Updated for 1.0 to handle both metadata files.
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 9 Jun 2003 20:53:01 +0000 (20:53 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 9 Jun 2003 20:53:01 +0000 (20:53 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@611 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

bin/SiteSigner
src/edu/internet2/middleware/shibboleth/common/SiteSigner.java

index ceb8db1..ae9b740 100755 (executable)
@@ -7,7 +7,7 @@ LOG_CONFIG=$TOMCAT_HOME/webapps/shibboleth/WEB-INF/conf/log4j.properties
 
 #Where to find jar files...
 LIB=$TOMCAT_HOME/webapps/shibboleth/WEB-INF/lib
-CP=$LIB/../classes:$LIB/bcprov-jdk14-117.jar:$LIB/log4j-1.2.5.jar:$LIB/opensaml.jar:$LIB/xalan-2.4.1.jar:$LIB/xercesImpl-2.2.1.jar:$LIB/xml-apis-2.4.1.jar:$LIB/xmlsec-1.0.5.jar
+CP=$LIB/../classes:$LIB/log4j-1.2.5.jar:$LIB/opensaml.jar:$LIB/xalan-2.4.1.jar:$LIB/dom3-xercesImpl-2.4.0.jar:$LIB/dom3-xml-apis-2.4.0.jar:$LIB/xmlsec-1.0.5.jar
 
 #Where Registry directory is
 REG_DIR=$TOMCAT_HOME/webapps/shibboleth
@@ -15,6 +15,7 @@ REG_DIR=$TOMCAT_HOME/webapps/shibboleth
 if [ -n JAVA_HOME ]
        then
                $JAVA_HOME/bin/java -Dlog.config=$LOG_CONFIG -cp $CP edu.internet2.middleware.shibboleth.common.SiteSigner -o $REG_DIR/sites.xml $@ $REG_DIR/sites_unsigned.xml
+               $JAVA_HOME/bin/java -Dlog.config=$LOG_CONFIG -cp $CP edu.internet2.middleware.shibboleth.common.SiteSigner -o $REG_DIR/trust.xml $@ $REG_DIR/trust_unsigned.xml
        else
                echo "JAVA_HOME not set."
 fi
index 0b2353f..b17f67a 100644 (file)
@@ -166,9 +166,10 @@ public class SiteSigner
 
         Document doc = org.opensaml.XML.parserPool.parse(arg);
         Element e = doc.getDocumentElement();
-        if (!XML.SHIB_NS.equals(e.getNamespaceURI()) || !"Sites".equals(e.getLocalName()))
+        if (!XML.SHIB_NS.equals(e.getNamespaceURI()) ||
+            (!"SiteGroup".equals(e.getLocalName()) && !"Trust".equals(e.getLocalName())))
         {
-            System.err.println("error: root element must be shib:Sites");
+            System.err.println("error: root element must be shib:SiteGroup or shib:Trust");
             System.exit(1);
         }