Class KeyStoreConfiguration

    • Field Detail

      • keyManagerFactoryAlgorithm

        private final java.lang.String keyManagerFactoryAlgorithm
    • Method Detail

      • createKeyStoreConfiguration

        @PluginFactory
        public static KeyStoreConfiguration createKeyStoreConfiguration​(@PluginAttribute("location")
                                                                        java.lang.String location,
                                                                        @PluginAttribute(value="password",sensitive=true)
                                                                        char[] password,
                                                                        @PluginAttribute("passwordEnvironmentVariable")
                                                                        java.lang.String passwordEnvironmentVariable,
                                                                        @PluginAttribute("passwordFile")
                                                                        java.lang.String passwordFile,
                                                                        @PluginAttribute("type")
                                                                        java.lang.String keyStoreType,
                                                                        @PluginAttribute("keyManagerFactoryAlgorithm")
                                                                        java.lang.String keyManagerFactoryAlgorithm)
                                                                 throws StoreConfigurationException
        Creates a KeyStoreConfiguration.
        Parameters:
        location - The location of the KeyStore, a file path, URL or resource.
        password - The password to access the KeyStore.
        keyStoreType - The KeyStore type, null defaults to "JKS".
        keyManagerFactoryAlgorithm - The standard name of the requested algorithm. See the Java Secure Socket Extension Reference Guide for information about these names.
        Returns:
        a new KeyStoreConfiguration
        Throws:
        StoreConfigurationException - Thrown if this call cannot load the KeyStore.
      • createKeyStoreConfiguration

        @Deprecated
        public static KeyStoreConfiguration createKeyStoreConfiguration​(java.lang.String location,
                                                                        java.lang.String password,
                                                                        java.lang.String keyStoreType,
                                                                        java.lang.String keyManagerFactoryAlgorithm)
                                                                 throws StoreConfigurationException
        Deprecated.
        Use createKeyStoreConfiguration(String, char[], String, String)
        Creates a KeyStoreConfiguration.
        Parameters:
        location - The location of the KeyStore, a file path, URL or resource.
        password - The password to access the KeyStore.
        keyStoreType - The KeyStore type, null defaults to "JKS".
        keyManagerFactoryAlgorithm - The standard name of the requested algorithm. See the Java Secure Socket Extension Reference Guide for information about these names.
        Returns:
        a new KeyStoreConfiguration
        Throws:
        StoreConfigurationException - Thrown if this call cannot load the KeyStore.
      • initKeyManagerFactory

        public javax.net.ssl.KeyManagerFactory initKeyManagerFactory()
                                                              throws java.security.NoSuchAlgorithmException,
                                                                     java.security.UnrecoverableKeyException,
                                                                     java.security.KeyStoreException
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.UnrecoverableKeyException
        java.security.KeyStoreException
      • getKeyManagerFactoryAlgorithm

        public java.lang.String getKeyManagerFactoryAlgorithm()