class SpiffeKeyManager extends X509ExtendedKeyManager {

    @Override
    public X509Certificate[] getCertificateChain(final String alias) {
        if (!Objects.equals(alias, DEFAULT_ALIAS)) {
            return new X509Certificate[0];
        }
        val x509Svid = x509SvidSource.getX509Svid();
        return x509Svid.getChainArray();
    }

    public  SpiffeKeyManager(@NonNull final X509SvidSource x509SvidSource);

}