Skip to content

Commit

Permalink
Improved API
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Nov 10, 2024
1 parent 60e729b commit 2354761
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -40,16 +41,27 @@
* @author Philip Helger
* @since 9.4.0
*/
@NotThreadSafe
public class TrustedCACertificates
{
private static final Logger LOGGER = LoggerFactory.getLogger (TrustedCACertificates.class);

private final ICommonsList <X509Certificate> m_aCerts = new CommonsArrayList <> ();
private final ICommonsSet <X500Principal> m_aIssuers = new CommonsHashSet <> ();

/**
* Empty default constructor.
*/
public TrustedCACertificates ()
{}

/**
* Copy constructor
*
* @param aSrc
* The object to copy from. May not be <code>null</code>.
* @since 9.6.0
*/
public TrustedCACertificates (@Nonnull final TrustedCACertificates aSrc)
{
ValueEnforcer.notNull (aSrc, "Src");
Expand Down

0 comments on commit 2354761

Please sign in to comment.