diff --git a/.classpath b/.classpath index ab1f0776ca..82a60c0b5f 100644 --- a/.classpath +++ b/.classpath @@ -21,14 +21,14 @@ - + - - - - + + + + diff --git a/build.xml b/build.xml index b022403a0f..b34ad68b84 100644 --- a/build.xml +++ b/build.xml @@ -167,14 +167,14 @@ under the License. - - - - - - - - + + + + + + + + @@ -461,8 +461,16 @@ under the License. + + + + + + + + @@ -1805,16 +1813,16 @@ under the License. - - - - + + + + - - + + - + @@ -1828,16 +1836,16 @@ under the License. - - - - + + + + - - + + - + diff --git a/sonar/ooxml/pom.xml b/sonar/ooxml/pom.xml index b10db33d82..4d1b52a742 100644 --- a/sonar/ooxml/pom.xml +++ b/sonar/ooxml/pom.xml @@ -125,17 +125,17 @@ org.bouncycastle bcpkix-jdk15on - 1.51 + 1.53 org.bouncycastle bcprov-jdk15on - 1.51 + 1.53 org.apache.santuario xmlsec - 2.0.1 + 2.0.5 com.github.virtuald diff --git a/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java b/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java index 9526c968b8..49c6828e93 100644 --- a/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java +++ b/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java @@ -162,9 +162,9 @@ import org.w3c.dom.events.EventTarget; *

To use SignatureInfo and its sibling classes, you'll need to have the following libs * in the classpath:

*
    - *
  • BouncyCastle bcpkix and bcprov (tested against 1.51)
  • - *
  • Apache Santuario "xmlsec" (tested against 2.0.1)
  • - *
  • and slf4j-api (tested against 1.7.7)
  • + *
  • BouncyCastle bcpkix and bcprov (tested against 1.53)
  • + *
  • Apache Santuario "xmlsec" (tested against 2.0.5)
  • + *
  • and slf4j-api (tested against 1.7.12)
  • *
*/ public class SignatureInfo implements SignatureConfigurable { diff --git a/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/facets/XAdESXLSignatureFacet.java b/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/facets/XAdESXLSignatureFacet.java index 2427f09fd1..61d61cf810 100644 --- a/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/facets/XAdESXLSignatureFacet.java +++ b/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/facets/XAdESXLSignatureFacet.java @@ -249,7 +249,7 @@ public class XAdESXLSignatureFacet extends SignatureFacet { ResponderIDType responderId = ocspIdentifier.addNewResponderID(); RespID respId = basicOcspResp.getResponderId(); - ResponderID ocspResponderId = respId.toASN1Object(); + ResponderID ocspResponderId = respId.toASN1Primitive(); DERTaggedObject derTaggedObject = (DERTaggedObject)ocspResponderId.toASN1Primitive(); if (2 == derTaggedObject.getTagNo()) { ASN1OctetString keyHashOctetString = (ASN1OctetString)derTaggedObject.getObject();