@Test void testParseRaw() throws URISyntaxException, IOException { Path certPath = Paths.get(toUri(certDER)); Path keyPath = Paths.get(toUri(keyDER)); byte[] certBytes = Files.readAllBytes(certPath); byte[] keyBytes = Files.readAllBytes(keyPath); try { X509Svid x509Svid = X509Svid.parseRaw(certBytes, keyBytes); assertEquals("spiffe: } catch (X509SvidException e) { fail(e); } }
public static X509Svid parseRaw(@NonNull final byte[] certsBytes, @NonNull final byte[] privateKeyBytes) throws X509SvidException { return createX509Svid(certsBytes, privateKeyBytes, KeyFileFormat.DER); }
X509Svid { public static X509Svid parseRaw(@NonNull final byte[] certsBytes, @NonNull final byte[] privateKeyBytes) throws X509SvidException { return createX509Svid(certsBytes, privateKeyBytes, KeyFileFormat.DER); } }
X509Svid { public static X509Svid parseRaw(@NonNull final byte[] certsBytes, @NonNull final byte[] privateKeyBytes) throws X509SvidException { return createX509Svid(certsBytes, privateKeyBytes, KeyFileFormat.DER); } private  X509Svid(
            final SpiffeId spiffeId,
            final List<X509Certificate> chain,
            final PrivateKey privateKey); }
X509Svid { public static X509Svid parseRaw(@NonNull final byte[] certsBytes, @NonNull final byte[] privateKeyBytes) throws X509SvidException { return createX509Svid(certsBytes, privateKeyBytes, KeyFileFormat.DER); } private  X509Svid(
            final SpiffeId spiffeId,
            final List<X509Certificate> chain,
            final PrivateKey privateKey); X509Certificate getLeaf(); List<X509Certificate> getChain(); static X509Svid load(@NonNull final Path certsFilePath, @NonNull final Path privateKeyFilePath); static X509Svid parse(@NonNull final byte[] certsBytes, @NonNull final byte[] privateKeyBytes); static X509Svid parseRaw(@NonNull final byte[] certsBytes,
                                    @NonNull final byte[] privateKeyBytes); X509Certificate[] getChainArray(); }
X509Svid { public static X509Svid parseRaw(@NonNull final byte[] certsBytes, @NonNull final byte[] privateKeyBytes) throws X509SvidException { return createX509Svid(certsBytes, privateKeyBytes, KeyFileFormat.DER); } private  X509Svid(
            final SpiffeId spiffeId,
            final List<X509Certificate> chain,
            final PrivateKey privateKey); X509Certificate getLeaf(); List<X509Certificate> getChain(); static X509Svid load(@NonNull final Path certsFilePath, @NonNull final Path privateKeyFilePath); static X509Svid parse(@NonNull final byte[] certsBytes, @NonNull final byte[] privateKeyBytes); static X509Svid parseRaw(@NonNull final byte[] certsBytes,
                                    @NonNull final byte[] privateKeyBytes); X509Certificate[] getChainArray();  }