All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.hermes.common.ssl.jvm.JvmKeyManagersProvider Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
package pl.allegro.tech.hermes.common.ssl.jvm;

import pl.allegro.tech.hermes.common.ssl.KeyManagersProvider;

import javax.net.ssl.KeyManager;
import javax.net.ssl.KeyManagerFactory;

public class JvmKeyManagersProvider implements KeyManagersProvider {

    @Override
    public KeyManager[] getKeyManagers() throws Exception {
        KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
        keyManagerFactory.init(null, null);
        return keyManagerFactory.getKeyManagers();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy