Top Fields Constructors Methods
org.bouncycastle.mail.smime

public Class SMIMEEnvelopedUtil

extends Object
Class Inheritance
Imports
java.util.HashSet, .Set, jakarta.mail.MessagingException, jakarta.mail.internet.MimeBodyPart, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.cms.CMSException, .RecipientInformationStore

Field Summary

Modifier and TypeField and Description
private static Set<ASN1ObjectIdentifier>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SMIMEEnvelopedGenerator

Returns:

a SMIME Enveloped Generator class.
createGenerator
(ASN1ObjectIdentifier
algorithm OID
algorithm
)

Utility method which will return an SMIMEEnvelopedGenerator or an SMIMEAuthEnvelopedGenerator as appropriate for the algorithm OID passed in.

public static RecipientInformationStore

Returns:

the RecipientInformation store for the passed in message.
getRecipientInfos
(MimeBodyPart
the message to be parsed.
message
)

Parse the passed in MimeMessage extracting the RecipientInfos from it.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authOIDsback to summary
private static Set<ASN1ObjectIdentifier> authOIDs

Constructor Detail

SMIMEEnvelopedUtilback to summary
public SMIMEEnvelopedUtil()

Method Detail

createGeneratorback to summary
public static SMIMEEnvelopedGenerator createGenerator(ASN1ObjectIdentifier algorithm)

Utility method which will return an SMIMEEnvelopedGenerator or an SMIMEAuthEnvelopedGenerator as appropriate for the algorithm OID passed in.

Parameters
algorithm:ASN1ObjectIdentifier

algorithm OID

Returns:SMIMEEnvelopedGenerator

a SMIME Enveloped Generator class.

getRecipientInfosback to summary
public static RecipientInformationStore getRecipientInfos(MimeBodyPart message) throws MessagingException, CMSException

Parse the passed in MimeMessage extracting the RecipientInfos from it.

Parameters
message:MimeBodyPart

the message to be parsed.

Returns:RecipientInformationStore

the RecipientInformation store for the passed in message.