io.r2.simplepemkeystore.SimplePemKeyStoreProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-pem-keystore Show documentation
Show all versions of simple-pem-keystore Show documentation
A java keystore implementation to use PEM files directly.
package io.r2.simplepemkeystore;
import java.security.Provider;
import java.security.Security;
/**
* Master class for JCE integration, defining implementated functions
*/
public final class SimplePemKeyStoreProvider extends Provider {
public SimplePemKeyStoreProvider() {
super(
"SimplePemKeyStore",
0.1,
"SimplePemKeyStore 0.1 - PEM based key stores with automatic reloading"
);
put("KeyStore.simplepem", "io.r2.simplepemkeystore.spi.SimplePemKeyStoreSpi");
put("KeyStore.simplepemreload", "io.r2.simplepemkeystore.spi.ReloadablePemKeyStoreSpi");
put("KeyManagerFactory.simplepemreload", "io.r2.simplepemkeystore.spi.ExpiringCacheKeyManagerFactorySpi");
}
/**
* Static helper to register SimplePemKeyStore as security provider
*/
public static void register() {
Security.addProvider(new SimplePemKeyStoreProvider());
}
}