@Test void of_NullListOfX509SvidsParameter() { try { X509Context.of(null, createBundleSet()); fail(); } catch (NullPointerException e) { assertEquals("x509Svids is marked non-null but is null", e.getMessage()); } }
public static X509Context of(@NonNull final List<X509Svid> x509Svids, @NonNull final X509BundleSet x509BundleSet) { if (x509Svids.size() == 0) { throw new IllegalArgumentException("The X.509 Context must have a least one X.509 SVID"); } return new X509Context(x509Svids, x509BundleSet); }
X509Context { public static X509Context of(@NonNull final List<X509Svid> x509Svids, @NonNull final X509BundleSet x509BundleSet) { if (x509Svids.size() == 0) { throw new IllegalArgumentException("The X.509 Context must have a least one X.509 SVID"); } return new X509Context(x509Svids, x509BundleSet); } }
X509Context { public static X509Context of(@NonNull final List<X509Svid> x509Svids, @NonNull final X509BundleSet x509BundleSet) { if (x509Svids.size() == 0) { throw new IllegalArgumentException("The X.509 Context must have a least one X.509 SVID"); } return new X509Context(x509Svids, x509BundleSet); } X509Context(final List<X509Svid> x509Svids, final X509BundleSet x509BundleSet); }
X509Context { public static X509Context of(@NonNull final List<X509Svid> x509Svids, @NonNull final X509BundleSet x509BundleSet) { if (x509Svids.size() == 0) { throw new IllegalArgumentException("The X.509 Context must have a least one X.509 SVID"); } return new X509Context(x509Svids, x509BundleSet); } X509Context(final List<X509Svid> x509Svids, final X509BundleSet x509BundleSet); static X509Context of(@NonNull final List<X509Svid> x509Svids, @NonNull final X509BundleSet x509BundleSet); X509Svid getDefaultSvid(); }
X509Context { public static X509Context of(@NonNull final List<X509Svid> x509Svids, @NonNull final X509BundleSet x509BundleSet) { if (x509Svids.size() == 0) { throw new IllegalArgumentException("The X.509 Context must have a least one X.509 SVID"); } return new X509Context(x509Svids, x509BundleSet); } X509Context(final List<X509Svid> x509Svids, final X509BundleSet x509BundleSet); static X509Context of(@NonNull final List<X509Svid> x509Svids, @NonNull final X509BundleSet x509BundleSet); X509Svid getDefaultSvid();  }