/** * Returns one key manager for each type of key material. * * @return the key managers * @throws IllegalStateException if the KeyManagerFactory is not initialized */ public final KeyManager[] getKeyManagers() { return factorySpi.engineGetKeyManagers(); }
/** * Get an array of key managers appropriate for this algorithm, with the most preferred manager * first. * * @return The array of key managers. */ public final KeyManager[] getKeyManagers() { return kmfSpi.engineGetKeyManagers(); }