class SpiffeTrustManagerFactory extends TrustManagerFactorySpi {

    public TrustManager[] engineGetTrustManagersAcceptAnySpiffeId(@NonNull final BundleSource<X509Bundle> x509BundleSource) {
        val spiffeTrustManager = new SpiffeTrustManager(x509BundleSource);
        return new TrustManager[]{spiffeTrustManager};
    }

}