@Test void testGetLeaf() throws URISyntaxException, X509SvidException { Path certPath = Paths.get(toUri(certSingle)); Path keyPath = Paths.get(toUri(keyRSA)); X509Svid x509Svid = X509Svid.load(certPath, keyPath); assertEquals(x509Svid.getChain().get(0), x509Svid.getLeaf()); }
public X509Certificate getLeaf() { return chain.get(0); }
X509Svid { public X509Certificate getLeaf() { return chain.get(0); } }
X509Svid { public X509Certificate getLeaf() { return chain.get(0); } private  X509Svid(
            final SpiffeId spiffeId,
            final List<X509Certificate> chain,
            final PrivateKey privateKey); }
X509Svid { public X509Certificate getLeaf() { return chain.get(0); } 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 X509Certificate getLeaf() { return chain.get(0); } 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();  }