| Modifier and Type | Field and Description |
|---|---|
| private final DigestCalculatorProvider |
| Access | Constructor and Description |
|---|---|
| public | SMIMEToolkit(DigestCalculatorProvider
provider for any digest calculations required. digestCalculatorProvider)Base constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public MimeBodyPart | Returns: a MIME part containing the decrypted content or null if the recipientId cannot be matched.the part containing the encrypted data. mimePart, RecipientId the recipient id in the date to be matched. recipientId, Recipient the recipient to be used if a match is found. recipient)Decrypt the passed in MIME part returning a part representing the decrypted content. |
| public MimeBodyPart | Returns: a MIME part containing the decrypted content, or null if the recipientId cannot be matched.the message containing the encrypted data. message, RecipientId the recipient id in the date to be matched. recipientId, Recipient the recipient to be used if a match is found. recipient)Decrypt the passed in MIME message returning a part representing the decrypted content. |
| public MimeBodyPart | Returns: an encrypted MIME part.the part to be encrypted. mimePart, OutputEncryptor the encryptor to use for the actual message content. contentEncryptor, RecipientInfoGenerator the generator for the target recipient. recipientGenerator)Encrypt the passed in MIME part returning a new encrypted MIME part. |
| public MimeBodyPart | Returns: an encrypted MIME part.the multi-part to be encrypted. multiPart, OutputEncryptor the encryptor to use for the actual message content. contentEncryptor, RecipientInfoGenerator the generator for the target recipient. recipientGenerator)Encrypt the passed in MIME multi-part returning a new encrypted MIME part. |
| public MimeBodyPart | Returns: an encrypted MIME part.the multi-part to be encrypted. message, OutputEncryptor the encryptor to use for the actual message content. contentEncryptor, RecipientInfoGenerator the generator for the target recipient. recipientGenerator)Encrypt the passed in MIME message returning a new encrypted MIME part. |
| public X509CertificateHolder | Returns: the signing certificate, null if not found.a MIME part/MIME message representing a signed message. message, SignerInformation the signer information identifying the signer of interest. signerInformation)Extract the signer's signing certificate from the message. |
| public X509CertificateHolder | Returns: the signing certificate, null if not found.a MIME Multipart part representing a signed message. message, SignerInformation the signer information identifying the signer of interest. signerInformation)Extract the signer's signing certificate from Multipart message content. |
| private boolean | |
| public boolean | Returns: true if the message represents an encrypted message, false otherwise.message of interest message)Return true if the passed in message (MimeBodyPart or MimeMessage) is encrypted. |
| public boolean | |
| public boolean | Returns: true if the multipart has an attached signature, false otherwise.message of interest message)Return true if the passed in MimeMultipart is a signed one. |
| public boolean | Returns: true if cert verifies message, false otherwise.a MIME part representing a signed message. message, SignerInformationVerifier the verifier we want to find a signer for. verifier)Return true if there is a signature on the message that can be verified by the verifier. |
| public boolean | Returns: true if cert verifies message, false otherwise.a MIME part representing a signed message. message, SignerInformationVerifier the verifier we want to find a signer for. verifier)Return true if there is a signature on the message that can be verified by verifier.. |
| public MimeMultipart | Returns: the resulting MimeMultipartthe message to be signed. message, SignerInfoGenerator the generator to be used to generate the signature. signerInfoGenerator)Produce a signed message in multi-part format with the second part containing a detached signature for the first. |
| public MimeBodyPart | Returns: a BodyPart containing the encapsulated message.the message to be signed. message, SignerInfoGenerator the generator to be used to generate the signature. signerInfoGenerator)Produce a signed message in encapsulated format where the message is encoded in the signature.. |
| digestCalculatorProvider | back to summary |
|---|---|
| private final DigestCalculatorProvider digestCalculatorProvider | |
| SMIMEToolkit | back to summary |
|---|---|
| public SMIMEToolkit(DigestCalculatorProvider digestCalculatorProvider) Base constructor.
| |
| decrypt | back to summary |
|---|---|
| public MimeBodyPart decrypt(MimeBodyPart mimePart, RecipientId recipientId, Recipient recipient) throws SMIMEException, MessagingException Decrypt the passed in MIME part returning a part representing the decrypted content.
| |
| decrypt | back to summary |
|---|---|
| public MimeBodyPart decrypt(MimeMessage message, RecipientId recipientId, Recipient recipient) throws SMIMEException, MessagingException Decrypt the passed in MIME message returning a part representing the decrypted content.
| |
| encrypt | back to summary |
|---|---|
| public MimeBodyPart encrypt(MimeBodyPart mimePart, OutputEncryptor contentEncryptor, RecipientInfoGenerator recipientGenerator) throws SMIMEException Encrypt the passed in MIME part returning a new encrypted MIME part.
| |
| encrypt | back to summary |
|---|---|
| public MimeBodyPart encrypt(MimeMultipart multiPart, OutputEncryptor contentEncryptor, RecipientInfoGenerator recipientGenerator) throws SMIMEException, MessagingException Encrypt the passed in MIME multi-part returning a new encrypted MIME part.
| |
| encrypt | back to summary |
|---|---|
| public MimeBodyPart encrypt(MimeMessage message, OutputEncryptor contentEncryptor, RecipientInfoGenerator recipientGenerator) throws SMIMEException Encrypt the passed in MIME message returning a new encrypted MIME part.
| |
| extractCertificate | back to summary |
|---|---|
| public X509CertificateHolder extractCertificate(Part message, SignerInformation signerInformation) throws SMIMEException, MessagingException Extract the signer's signing certificate from the message.
| |
| extractCertificate | back to summary |
|---|---|
| public X509CertificateHolder extractCertificate(MimeMultipart message, SignerInformation signerInformation) throws SMIMEException, MessagingException Extract the signer's signing certificate from Multipart message content.
| |
| isAtLeastOneValidSigner | back to summary |
|---|---|
| private boolean isAtLeastOneValidSigner(SMIMESignedParser s, SignerInformationVerifier verifier) throws CMSException | |
| isEncrypted | back to summary |
|---|---|
| public boolean isEncrypted(Part message) throws MessagingException Return true if the passed in message (MimeBodyPart or MimeMessage) is encrypted.
| |
| isSigned | back to summary |
|---|---|
| public boolean isSigned(Part message) throws MessagingException Return true if the passed in message (MimeBodyPart or MimeMessage) is a signed one.
| |
| isSigned | back to summary |
|---|---|
| public boolean isSigned(MimeMultipart message) throws MessagingException Return true if the passed in MimeMultipart is a signed one.
| |
| isValidSignature | back to summary |
|---|---|
| public boolean isValidSignature(Part message, SignerInformationVerifier verifier) throws SMIMEException, MessagingException Return true if there is a signature on the message that can be verified by the verifier.
| |
| isValidSignature | back to summary |
|---|---|
| public boolean isValidSignature(MimeMultipart message, SignerInformationVerifier verifier) throws SMIMEException, MessagingException Return true if there is a signature on the message that can be verified by verifier..
| |
| sign | back to summary |
|---|---|
| public MimeMultipart sign(MimeBodyPart message, SignerInfoGenerator signerInfoGenerator) throws SMIMEException Produce a signed message in multi-part format with the second part containing a detached signature for the first.
| |
| signEncapsulated | back to summary |
|---|---|
| public MimeBodyPart signEncapsulated(MimeBodyPart message, SignerInfoGenerator signerInfoGenerator) throws SMIMEException Produce a signed message in encapsulated format where the message is encoded in the signature..
| |