From ac8fe05f4247b8191729bc9c5eb72d4365907fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Sat, 16 Mar 2019 17:02:07 +0100 Subject: [PATCH] Remove deprecated code --- .../acme4j/util/CertificateUtils.java | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/acme4j-utils/src/main/java/org/shredzone/acme4j/util/CertificateUtils.java b/acme4j-utils/src/main/java/org/shredzone/acme4j/util/CertificateUtils.java index 89bb2c64..82e7723e 100644 --- a/acme4j-utils/src/main/java/org/shredzone/acme4j/util/CertificateUtils.java +++ b/acme4j-utils/src/main/java/org/shredzone/acme4j/util/CertificateUtils.java @@ -84,31 +84,6 @@ public final class CertificateUtils { } } - /** - * Creates a self-signed {@link X509Certificate} that can be used for the - * {@link TlsAlpn01Challenge}. The certificate is valid for 7 days. - * - * @param keypair - * A domain {@link KeyPair} to be used for the challenge - * @param subject - * The subject (domain name) that is to be validated - * @param acmeValidation - * The value that is returned by - * {@link TlsAlpn01Challenge#getAcmeValidation()} - * @return Created certificate - * @since 2.1 - * @deprecated Use {@link #createTlsAlpn01Certificate(KeyPair, Identifier, byte[])} - * and {@link Identifier#dns(String)}. If an {@link Authorization} - * instance is at hand, you can also use - * {@link Authorization#getIdentifier()}. - */ - @Deprecated - public static X509Certificate createTlsAlpn01Certificate(KeyPair keypair, String subject, byte[] acmeValidation) - throws IOException { - Objects.requireNonNull(subject, "subject"); - return createTlsAlpn01Certificate(keypair, Identifier.dns(subject), acmeValidation); - } - /** * Creates a self-signed {@link X509Certificate} that can be used for the * {@link TlsAlpn01Challenge}. The certificate is valid for 7 days.