Skip to content

Commit

Permalink
Upgrade BouncyCastle to 1.70
Browse files Browse the repository at this point in the history
DEV-2005
  • Loading branch information
nikitakovaliov92 committed Feb 16, 2022
1 parent 5654206 commit 465f48f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions itext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15to18</artifactId>
<version>1.67</version>
<version>1.70</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.67</version>
<version>1.70</version>
<optional>true</optional>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,12 @@ else if (isCades && idSeq2.equals(SecurityIDs.ID_AA_SIGNING_CERTIFICATE_V2)) {
if (ts != null && ts.getAttrValues().size() > 0) {
ASN1Set attributeValues = ts.getAttrValues();
ASN1Sequence tokenSequence = ASN1Sequence.getInstance(attributeValues.getObjectAt(0));
ContentInfo contentInfo = new ContentInfo(tokenSequence);
ContentInfo contentInfo = ContentInfo.getInstance(tokenSequence);
this.timeStampToken = new TimeStampToken(contentInfo);
}
}
if (isTsp) {
ContentInfo contentInfoTsp = new ContentInfo(signedData);
ContentInfo contentInfoTsp = ContentInfo.getInstance(signedData);
this.timeStampToken = new TimeStampToken(contentInfoTsp);
TimeStampTokenInfo info = timeStampToken.getTimeStampInfo();
String algOID = info.getMessageImprintAlgOID().getId();
Expand Down Expand Up @@ -704,7 +704,7 @@ public byte[] getEncodedPKCS1() {
digest = sig.sign();
ByteArrayOutputStream bOut = new ByteArrayOutputStream();

ASN1OutputStream dout = new ASN1OutputStream(bOut);
ASN1OutputStream dout = ASN1OutputStream.create(bOut);
dout.writeObject(new DEROctetString(digest));
dout.close();

Expand Down Expand Up @@ -855,7 +855,7 @@ else if (externalRSAdata != null && RSAdata != null) {

ByteArrayOutputStream bOut = new ByteArrayOutputStream();

ASN1OutputStream dout = new ASN1OutputStream(bOut);
ASN1OutputStream dout = ASN1OutputStream.create(bOut);
dout.writeObject(new DERSequence(whole));
dout.close();

Expand Down
2 changes: 1 addition & 1 deletion pdfa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15to18</artifactId>
<version>1.67</version>
<version>1.70</version>
<optional>true</optional>
</dependency>
<dependency>
Expand Down

0 comments on commit 465f48f

Please sign in to comment.