Remove deprecated methods

This commit is contained in:
Richard Körber
2023-04-23 11:43:29 +02:00
parent 0d55898379
commit aeb68c0cb4
3 changed files with 1 additions and 58 deletions

View File

@@ -107,43 +107,6 @@ public final class EmailProcessor {
return new Builder();
}
/**
* Performs an S/MIME validation and processes the given e-mail message.
* <p>
* The owner of the given certificate must be the sender of that email.
*
* @param message
* E-mail that was received from the CA.
* @param mailSession
* A {@link Session} that can be used for processing inner e-mails.
* @param signCert
* The signing certificate of the sender.
* @param strict
* If {@code true}, the S/MIME protected headers "From", "To", and "Subject"
* <em>must</em> match the headers of the received message. If {@code false},
* only the S/MIME protected headers are used, and the headers of the received
* message are ignored.
* @return EmailProcessor for this e-mail
* @throws AcmeInvalidMessageException
* if a validation failed, and the message <em>must</em> be rejected.
* @since 2.15
* @deprecated Use {@link #signedMessage(Message)} or {@link #builder()} instead.
*/
@Deprecated
public static EmailProcessor smimeMessage(Message message, Session mailSession,
X509Certificate signCert, boolean strict)
throws AcmeInvalidMessageException {
var builder = builder()
.mailSession(mailSession)
.certificate(signCert);
if (strict) {
builder.strict();
} else {
builder.relaxed();
}
return builder.build(message);
}
/**
* Creates a new {@link EmailProcessor} for the incoming "Challenge" message.
* <p>