class SpiffeKeyManagerFactory extends KeyManagerFactorySpi {

    @Override
    protected KeyManager[] engineGetKeyManagers() {
        val x509Source = getX509Source();
        val spiffeKeyManager = new SpiffeKeyManager(x509Source);
        return new KeyManager[]{spiffeKeyManager};
    }

}