From 2354761f8b553a2bc757119fa675b091057877c7 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Sun, 10 Nov 2024 21:11:25 +0100 Subject: [PATCH] Improved API --- .../helger/peppol/utils/TrustedCACertificates.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/peppol-commons/src/main/java/com/helger/peppol/utils/TrustedCACertificates.java b/peppol-commons/src/main/java/com/helger/peppol/utils/TrustedCACertificates.java index 6c1d6091..cfa0c7be 100644 --- a/peppol-commons/src/main/java/com/helger/peppol/utils/TrustedCACertificates.java +++ b/peppol-commons/src/main/java/com/helger/peppol/utils/TrustedCACertificates.java @@ -19,6 +19,7 @@ import java.security.cert.X509Certificate; import javax.annotation.Nonnull; +import javax.annotation.concurrent.NotThreadSafe; import javax.security.auth.x500.X500Principal; import org.slf4j.Logger; @@ -40,6 +41,7 @@ * @author Philip Helger * @since 9.4.0 */ +@NotThreadSafe public class TrustedCACertificates { private static final Logger LOGGER = LoggerFactory.getLogger (TrustedCACertificates.class); @@ -47,9 +49,19 @@ public class TrustedCACertificates private final ICommonsList m_aCerts = new CommonsArrayList <> (); private final ICommonsSet m_aIssuers = new CommonsHashSet <> (); + /** + * Empty default constructor. + */ public TrustedCACertificates () {} + /** + * Copy constructor + * + * @param aSrc + * The object to copy from. May not be null. + * @since 9.6.0 + */ public TrustedCACertificates (@Nonnull final TrustedCACertificates aSrc) { ValueEnforcer.notNull (aSrc, "Src");