rapt
rapt

Reputation: 12230

Bouncy Castle jar confusion?

This class is deprecated:

http://www.bouncycastle.org/docs/docs1.5on/org/bouncycastle/jce/PKCS10CertificationRequest.html

but when I download this far form the maven repository

<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bcprov-jdk15on</artifactId>
    <version>1.50</version>
</dependency>

There is no org.bouncycastle.pkcs there.

Where can I get the latest jar (and the sources)?

Upvotes: 1

Views: 1760

Answers (1)

Absurd-Mind
Absurd-Mind

Reputation: 8004

1.50 or sometimes 150 is the latest release.

The deprecation notes:

Deprecated.

use classes in org.bouncycastle.pkcs.

If you take a close look you will see that this class was moved to a different package: PKCS10CertificationRequest

You will need the following dependency to access that class:

<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bcpkix-jdk15on</artifactId>
    <version>1.50</version>
</dependency>

Upvotes: 2

Related Questions