Convert CertificateValidationException to Kotlin

This commit is contained in:
cketti 2023-12-06 16:08:42 +01:00
parent 3cf4395fa1
commit 5c58b03fb2

View file

@ -1,20 +1,8 @@
package com.fsck.k9.mail;
package com.fsck.k9.mail
import java.security.cert.X509Certificate;
import java.util.List;
import java.security.cert.X509Certificate
import org.jetbrains.annotations.NotNull;
public class CertificateValidationException extends MessagingException {
private final List<X509Certificate> certificateChain;
public CertificateValidationException(@NotNull List<X509Certificate> certificateChain, Throwable cause) {
super(cause);
this.certificateChain = certificateChain;
}
public List<X509Certificate> getCertificateChain() {
return certificateChain;
}
}
class CertificateValidationException(
val certificateChain: List<X509Certificate>,
cause: Throwable?,
) : MessagingException(cause)