mirror of https://github.com/shred/acme4j
Remove deprecated code
parent
da9fb92445
commit
ac8fe05f42
|
@ -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
|
* Creates a self-signed {@link X509Certificate} that can be used for the
|
||||||
* {@link TlsAlpn01Challenge}. The certificate is valid for 7 days.
|
* {@link TlsAlpn01Challenge}. The certificate is valid for 7 days.
|
||||||
|
|
Loading…
Reference in New Issue