Registry / crypto / bcmail-jdk16

bcmail-jdk16

JSON →
library1.46javamavenunverified

Provides CMS and S/MIME cryptographic APIs for handling secure email protocols using Bouncy Castle.

<dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcmail-jdk16</artifactId> <version>1.46</version> </dependency>
INSTALL
IMPORT
SIG · BCMAIL-JDK16
B
bcmail-jdk16
cryptojavav1.46
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SMIMEEnvelopedGenerator
org.bouncycastle.mail.smime.SMIMEEnvelopedGenerator

Creates an S/MIME encrypted message using Bouncy Castle.

import org.bouncycastle.mail.smime.SMIMEEnvelopedGenerator; import javax.mail.internet.MimeBodyPart; public class Example { public static void main(String[] args) throws Exception { SMIMEEnvelopedGenerator gen = new SMIMEEnvelopedGenerator(); MimeBodyPart encrypted = gen.generate(new MimeBodyPart(), null); System.out.println("Encrypted message created"); } }
Debug
Known issues
breakingJDK 1.6 version is outdated; use bcmail-jdk18on for modern Java.
fix
Replace with org.bouncycastle:bcmail-jdk18on for JDK 8+.
affects: >=1.46
Upgrade
Version history
1.46latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
22
Resources
bcmail-jdk16 — mvn dependency:get bcmail-jdk16 · libregistry