| Modifier and Type | Field and Description |
|---|---|
static KeyEncapsulationAlgorithm |
SmimeUtil.DEFAULT_KEY_ENCAPSULATION_ALGORITHM |
| Modifier and Type | Method and Description |
|---|---|
static KeyEncapsulationAlgorithm |
KeyEncapsulationAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyEncapsulationAlgorithm[] |
KeyEncapsulationAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static jakarta.mail.internet.MimeBodyPart |
SmimeUtil.encrypt(jakarta.mail.internet.MimeBodyPart mimeBodyPart,
X509Certificate certificate,
KeyEncapsulationAlgorithm keyEncapsulationAlgorithm,
org.bouncycastle.asn1.ASN1ObjectIdentifier cmsAlgorithm)
Encrypts a MIME body part and yields a new S/MIME encrypted MIME body
part.
|
static jakarta.mail.internet.MimeMessage |
SmimeUtil.encrypt(jakarta.mail.Session session,
jakarta.mail.internet.MimeMessage mimeMessage,
@Nullable String messageId,
X509Certificate certificate,
KeyEncapsulationAlgorithm keyEncapsulationAlgorithm,
org.bouncycastle.asn1.ASN1ObjectIdentifier cmsAlgorithm)
Encrypts a MIME message and yields a new S/MIME encrypted MIME message.
|
Copyright © 2021–2024. All rights reserved.