Class SMimeMessageFactory


  • public class SMimeMessageFactory
    extends Object
    Creates signed Mime messages
    • Constructor Detail

    • Method Detail

      • createSignedMimeMessage

        public jakarta.mail.internet.MimeMessage createSignedMimeMessage​(String msg,
                                                                         jakarta.activation.MimeType mimeType,
                                                                         SMimeDigestMethod digestMethod)
                                                                  throws network.oxalis.api.lang.OxalisTransmissionException
        Creates an S/MIME message from the supplied String, having the supplied MimeType as the "content-type".
        Parameters:
        msg - holds the payload of the message
        mimeType - the MIME type to be used as the "Content-Type"
        Throws:
        network.oxalis.api.lang.OxalisTransmissionException
      • createSignedMimeMessage

        public jakarta.mail.internet.MimeMessage createSignedMimeMessage​(InputStream inputStream,
                                                                         jakarta.activation.MimeType mimeType,
                                                                         SMimeDigestMethod digestMethod)
                                                                  throws network.oxalis.api.lang.OxalisTransmissionException
        Creates a new S/MIME message having the supplied MimeType as the "content-type"
        Throws:
        network.oxalis.api.lang.OxalisTransmissionException
      • createSignedMimeMessage

        public jakarta.mail.internet.MimeMessage createSignedMimeMessage​(jakarta.mail.internet.MimeBodyPart mimeBodyPart,
                                                                         SMimeDigestMethod digestMethod)
                                                                  throws network.oxalis.api.lang.OxalisTransmissionException
        Creates an S/MIME message using the supplied MimeBodyPart. The signature is generated using the private key as supplied in the constructor. Our certificate, which is required to verify the signature is enclosed.
        Throws:
        network.oxalis.api.lang.OxalisTransmissionException
      • createSignedMimeMessageNew

        public jakarta.mail.internet.MimeMessage createSignedMimeMessageNew​(jakarta.mail.internet.MimeBodyPart mimeBodyPart,
                                                                            network.oxalis.vefa.peppol.common.model.Digest digest,
                                                                            SMimeDigestMethod digestMethod)
                                                                     throws network.oxalis.api.lang.OxalisTransmissionException
        Throws:
        network.oxalis.api.lang.OxalisTransmissionException