Class KeyStoreUtil


  • public class KeyStoreUtil
    extends java.lang.Object
    Utility class with some KeyStore related methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyStoreUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.KeyStore loadCacertsKeyStore()
      Loads the default root certificates at <java.home>/lib/security/cacerts with the default provider.
      static java.security.KeyStore loadCacertsKeyStore​(java.lang.String provider)
      Loads the default root certificates at <java.home>/lib/security/cacerts.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyStoreUtil

        public KeyStoreUtil()
    • Method Detail

      • loadCacertsKeyStore

        public static java.security.KeyStore loadCacertsKeyStore​(java.lang.String provider)
        Loads the default root certificates at <java.home>/lib/security/cacerts.
        Parameters:
        provider - the provider or null for the default provider
        Returns:
        a KeyStore
      • loadCacertsKeyStore

        public static java.security.KeyStore loadCacertsKeyStore()
        Loads the default root certificates at <java.home>/lib/security/cacerts with the default provider.
        Returns:
        a KeyStore