@Test void engineGetKeyManagers_nullParameter() { try { new SpiffeKeyManagerFactory().engineGetKeyManagers(null); } catch (NullPointerException e) { assertEquals("x509SvidSource is marked non-null but is null", e.getMessage()); } }
@Override protected KeyManager[] engineGetKeyManagers() { val x509Source = getX509Source(); val spiffeKeyManager = new SpiffeKeyManager(x509Source); return new KeyManager[]{spiffeKeyManager}; }
SpiffeKeyManagerFactory extends KeyManagerFactorySpi { @Override protected KeyManager[] engineGetKeyManagers() { val x509Source = getX509Source(); val spiffeKeyManager = new SpiffeKeyManager(x509Source); return new KeyManager[]{spiffeKeyManager}; } }
SpiffeKeyManagerFactory extends KeyManagerFactorySpi { @Override protected KeyManager[] engineGetKeyManagers() { val x509Source = getX509Source(); val spiffeKeyManager = new SpiffeKeyManager(x509Source); return new KeyManager[]{spiffeKeyManager}; }  }
SpiffeKeyManagerFactory extends KeyManagerFactorySpi { @Override protected KeyManager[] engineGetKeyManagers() { val x509Source = getX509Source(); val spiffeKeyManager = new SpiffeKeyManager(x509Source); return new KeyManager[]{spiffeKeyManager}; }  KeyManager[] engineGetKeyManagers(@NonNull final X509SvidSource x509SvidSource); }
SpiffeKeyManagerFactory extends KeyManagerFactorySpi { @Override protected KeyManager[] engineGetKeyManagers() { val x509Source = getX509Source(); val spiffeKeyManager = new SpiffeKeyManager(x509Source); return new KeyManager[]{spiffeKeyManager}; }  KeyManager[] engineGetKeyManagers(@NonNull final X509SvidSource x509SvidSource);  }