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.security.cert.X509Certificate
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
class CertificateValidationException(
|
||||||
|
val certificateChain: List<X509Certificate>,
|
||||||
|
cause: Throwable?,
|
||||||
public class CertificateValidationException extends MessagingException {
|
) : MessagingException(cause)
|
||||||
private final List<X509Certificate> certificateChain;
|
|
||||||
|
|
||||||
public CertificateValidationException(@NotNull List<X509Certificate> certificateChain, Throwable cause) {
|
|
||||||
super(cause);
|
|
||||||
this.certificateChain = certificateChain;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<X509Certificate> getCertificateChain() {
|
|
||||||
return certificateChain;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue