Convert CertificateValidationException
to Kotlin
This commit is contained in:
parent
3cf4395fa1
commit
5c58b03fb2
1 changed files with 6 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue