Skip to content

Commit 402f697

Browse files
committed
Update java bc library to 1.75
DEVSIX-7633
1 parent 351f98c commit 402f697

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

bouncy-castle-adapter/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
<dependencies>
1919
<dependency>
2020
<groupId>org.bouncycastle</groupId>
21-
<artifactId>bcpkix-jdk15on</artifactId>
21+
<artifactId>bcpkix-jdk18on</artifactId>
2222
<version>${bouncycastle.version}</version>
2323
</dependency>
2424
<dependency>
2525
<groupId>org.bouncycastle</groupId>
26-
<artifactId>bcprov-jdk15on</artifactId>
26+
<artifactId>bcprov-jdk18on</artifactId>
2727
<version>${bouncycastle.version}</version>
2828
</dependency>
2929
<dependency>

bouncy-castle-adapter/src/main/java/com/itextpdf/bouncycastle/BouncyCastleFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ public IRevokedStatus createRevokedStatus(Date date, int i) {
11151115
@Override
11161116
public IDERIA5String createDERIA5String(IASN1TaggedObject taggedObject, boolean b) {
11171117
return new DERIA5StringBC(
1118-
DERIA5String.getInstance(((ASN1TaggedObjectBC) taggedObject).getASN1TaggedObject(), b));
1118+
(DERIA5String)DERIA5String.getInstance(((ASN1TaggedObjectBC) taggedObject).getASN1TaggedObject(), b));
11191119
}
11201120

11211121
/**

bouncy-castle-adapter/src/main/java/com/itextpdf/bouncycastle/asn1/ASN1TaggedObjectBC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public ASN1TaggedObject getASN1TaggedObject() {
5454
*/
5555
@Override
5656
public IASN1Primitive getObject() {
57-
return new ASN1PrimitiveBC(getASN1TaggedObject().getObject());
57+
return new ASN1PrimitiveBC(getASN1TaggedObject().getBaseObject().toASN1Primitive());
5858
}
5959

6060
/**

bouncy-castle-connector/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
<exclusions>
2525
<exclusion>
2626
<groupId>org.bouncycastle</groupId>
27-
<artifactId>bcpkix-jdk15on</artifactId>
27+
<artifactId>bcpkix-jdk18on</artifactId>
2828
</exclusion>
2929
<exclusion>
3030
<groupId>org.bouncycastle</groupId>
31-
<artifactId>bcprov-jdk15on</artifactId>
31+
<artifactId>bcprov-jdk18on</artifactId>
3232
</exclusion>
3333
</exclusions>
3434
</dependency>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
<properties>
7777
<argLine>-Xmx1024m</argLine>
78-
<bouncycastle.version>1.70</bouncycastle.version>
78+
<bouncycastle.version>1.75</bouncycastle.version>
7979
<bouncycastleintegrationtests>com.itextpdf.test.annotations.type.BouncyCastleIntegrationTest</bouncycastleintegrationtests>
8080
<bouncycastleunittests>com.itextpdf.test.annotations.type.BouncyCastleUnitTest</bouncycastleunittests>
8181
<dependencyCheck.version>7.0.0</dependencyCheck.version>

sharpenConfiguration.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
<file path="com/itextpdf/bouncycastle/BouncyCastleFactory.java"/>
145145
<file path="com/itextpdf/bouncycastle/asn1/ASN1IntegerBC.java"/>
146146
<file path="com/itextpdf/bouncycastle/asn1/ASN1OctetStringBC.java"/>
147+
<file path="com/itextpdf/bouncycastle/asn1/ASN1TaggedObjectBC.java"/>
147148
<file path="com/itextpdf/bouncycastle/asn1/ocsp/BasicOCSPResponseBC.java"/>
148149
<file path="com/itextpdf/bouncycastle/asn1/ocsp/OCSPResponseBC.java"/>
149150
<file path="com/itextpdf/bouncycastle/asn1/pcks/PrivateKeyInfoBC.java"/>

0 commit comments

Comments
 (0)