<classpathentry kind="lib" path="ooxml-lib/ooxml-encryption-1.2.jar" sourcepath="ooxml-lib/ooxml-encryption-src-1.2.jar"/>\r
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>\r
<classpathentry kind="lib" path="compile-lib/slf4j-api-1.7.7.jar"/>\r
- <classpathentry kind="lib" path="compile-lib/bcpkix-jdk15on-151.jar"/>\r
+ <classpathentry kind="lib" path="compile-lib/bcpkix-jdk15on-1.51.jar"/>\r
<classpathentry kind="lib" path="compile-lib/bcprov-ext-jdk15on-1.51.jar"/>\r
<classpathentry kind="lib" path="compile-lib/xmlsec-2.0.1.jar"/>\r
<classpathentry kind="output" path="build/eclipse"/>\r
<property name="dsig.xmlsec.url" value="${repository.m2}/maven2/org/apache/santuario/xmlsec/2.0.1/xmlsec-2.0.1.jar"/>
<property name="dsig.bouncycastle-prov.jar" location="${compile.lib}/bcprov-ext-jdk15on-1.51.jar"/>
<property name="dsig.bouncycastle-prov.url" value="${repository.m2}/maven2/org/bouncycastle/bcprov-ext-jdk15on/1.51/bcprov-ext-jdk15on-1.51.jar"/>
- <property name="dsig.bouncycastle-pkix.jar" location="${compile.lib}/bcpkix-jdk15on-151.jar"/>
- <property name="dsig.bouncycastle-pkix.url" value="${repository.m2}/maven2/org/bouncycastle/bcpkix-jdk15on/1.51/bcpkix-jdk15on-151.jar"/>
+ <property name="dsig.bouncycastle-pkix.jar" location="${compile.lib}/bcpkix-jdk15on-1.51.jar"/>
+ <property name="dsig.bouncycastle-pkix.url" value="${repository.m2}/maven2/org/bouncycastle/bcpkix-jdk15on/1.51/bcpkix-jdk15on-1.51.jar"/>
<property name="dsig.sl4j-api.jar" location="${compile.lib}/slf4j-api-1.7.7.jar"/>
<property name="dsig.sl4j-api.url" value="${repository.m2}/maven2/org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.jar"/>
<pathelement location="${main.output.dir}"/>
</path>
+ <path id="ooxml.xmlsec.classpath">
+ <pathelement location="${dsig.xmlsec.jar}"/>
+ <pathelement location="${dsig.bouncycastle-prov.jar}"/>
+ <pathelement location="${dsig.bouncycastle-pkix.jar}"/>
+ <pathelement location="${dsig.sl4j-api.jar}"/>
+ </path>
+
<path id="ooxml.classpath">
<pathelement location="${ooxml.xmlbeans26.jar}"/>
<pathelement location="${ooxml.xsds.jar}"/>
<pathelement location="${main.output.dir}"/>
<pathelement location="${scratchpad.output.dir}"/>
<pathelement location="${ooxml.encryption.jar}"/>
+ <path refid="ooxml.xmlsec.classpath"/>
</path>
<path id="test.classpath">
<available file="${jacoco.zip}"/>
<available file="${rat.jar}"/>
<available file="${xerces.jar}"/>
+ <available file="${dsig.bouncycastle-prov.jar}"/>
+ <available file="${dsig.bouncycastle-pkix.jar}"/>
+ <available file="${dsig.xmlsec.jar}"/>
+ <available file="${dsig.sl4j-api.jar}"/>
</and>
<isset property="disconnected"/>
</or>
<param name="sourcefile" value="${dsig.xmlsec.url}"/>
<param name="destfile" value="${dsig.xmlsec.jar}"/>
</antcall>
+ <antcall target="downloadfile">
+ <param name="sourcefile" value="${dsig.sl4j-api.url}"/>
+ <param name="destfile" value="${dsig.sl4j-api.jar}"/>
+ </antcall>
</target>
<target name="check-ooxml-jars">
+/* ====================================================================\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to You under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+==================================================================== */\r
+\r
+/* ====================================================================\r
+ This product contains an ASLv2 licensed version of the OOXML signer\r
+ package from the eID Applet project\r
+ http://code.google.com/p/eid-applet/source/browse/trunk/README.txt \r
+ Copyright (C) 2008-2014 FedICT.\r
+ ================================================================= */ \r
+\r
package org.apache.poi.poifs.crypt.dsig.facets;\r
\r
import java.security.InvalidAlgorithmParameterException;\r