@Test void parseX509Bundle_corruptedBytes() { try { GrpcConversionUtils.parseX509Bundle(TrustDomain.of("example.org"), "corrupted".getBytes()); } catch (X509ContextException e) { assertEquals("X.509 Bundles could not be processed", e.getMessage()); } }
static X509Bundle parseX509Bundle(TrustDomain trustDomain, byte[] bundleBytes) throws X509ContextException { try { return X509Bundle.parse(trustDomain, bundleBytes); } catch (X509BundleException e) { throw new X509ContextException("X.509 Bundles could not be processed", e); } }
GrpcConversionUtils { static X509Bundle parseX509Bundle(TrustDomain trustDomain, byte[] bundleBytes) throws X509ContextException { try { return X509Bundle.parse(trustDomain, bundleBytes); } catch (X509BundleException e) { throw new X509ContextException("X.509 Bundles could not be processed", e); } } }
GrpcConversionUtils { static X509Bundle parseX509Bundle(TrustDomain trustDomain, byte[] bundleBytes) throws X509ContextException { try { return X509Bundle.parse(trustDomain, bundleBytes); } catch (X509BundleException e) { throw new X509ContextException("X.509 Bundles could not be processed", e); } } private  GrpcConversionUtils(); }
GrpcConversionUtils { static X509Bundle parseX509Bundle(TrustDomain trustDomain, byte[] bundleBytes) throws X509ContextException { try { return X509Bundle.parse(trustDomain, bundleBytes); } catch (X509BundleException e) { throw new X509ContextException("X.509 Bundles could not be processed", e); } } private  GrpcConversionUtils();  }
GrpcConversionUtils { static X509Bundle parseX509Bundle(TrustDomain trustDomain, byte[] bundleBytes) throws X509ContextException { try { return X509Bundle.parse(trustDomain, bundleBytes); } catch (X509BundleException e) { throw new X509ContextException("X.509 Bundles could not be processed", e); } } private  GrpcConversionUtils();   }