From 56e8053eaeb90735bce9a52d10ce5730d62aeab0 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Thu, 4 Jan 2024 09:23:04 +0100 Subject: [PATCH] Fixed annotation; #206 --- .../peppol/IPhase4PeppolCertificateCheckResultHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phase4-peppol-client/src/main/java/com/helger/phase4/peppol/IPhase4PeppolCertificateCheckResultHandler.java b/phase4-peppol-client/src/main/java/com/helger/phase4/peppol/IPhase4PeppolCertificateCheckResultHandler.java index cff783bde..d12fef66b 100644 --- a/phase4-peppol-client/src/main/java/com/helger/phase4/peppol/IPhase4PeppolCertificateCheckResultHandler.java +++ b/phase4-peppol-client/src/main/java/com/helger/phase4/peppol/IPhase4PeppolCertificateCheckResultHandler.java @@ -20,6 +20,7 @@ import java.time.OffsetDateTime; import javax.annotation.Nonnull; +import javax.annotation.Nullable; import com.helger.peppol.utils.EPeppolCertificateCheckResult; @@ -35,7 +36,7 @@ public interface IPhase4PeppolCertificateCheckResultHandler * Invoked after certificate check. * * @param aAPCertificate - * The AP certificate that was checked. Never null. + * The AP certificate that was checked. May be null. * @param aCheckDT * The date and time that was used to check the certificate. Never * null. @@ -44,7 +45,7 @@ public interface IPhase4PeppolCertificateCheckResultHandler * @throws Phase4PeppolException * Implementation dependent */ - void onCertificateCheckResult (@Nonnull X509Certificate aAPCertificate, + void onCertificateCheckResult (@Nullable X509Certificate aAPCertificate, @Nonnull OffsetDateTime aCheckDT, @Nonnull EPeppolCertificateCheckResult eCertCheckResult) throws Phase4PeppolException; }