Class KeyManagersParameters

java.lang.Object
org.apache.camel.support.jsse.JsseParameters
org.apache.camel.support.jsse.KeyManagersParameters
All Implemented Interfaces:
CamelContextAware, HasCamelContext

public class KeyManagersParameters extends JsseParameters
A representation of configuration options for creating and loading KeyManager instance(s).
  • Field Details

    • keyStore

      protected @Nullable KeyStoreParameters keyStore
    • keyPassword

      protected @Nullable String keyPassword
    • provider

      protected @Nullable String provider
    • algorithm

      protected @Nullable String algorithm
  • Constructor Details

    • KeyManagersParameters

      public KeyManagersParameters()
  • Method Details

    • createKeyManagers

      public KeyManager[] createKeyManagers() throws GeneralSecurityException, IOException
      Creates KeyManagers based on this instance's configuration and the KeyStore produced by the configuration returned from getKeyStore(). The KeyManagers are produced from a factory created by using the provider and algorithm identifiers returned by getProvider() and getAlgorithm(), respectively. If either of these methods returns null, the default JSSE value is used instead.
      Returns:
      the initialized KeyManagers
      Throws:
      GeneralSecurityException - if there is an error creating the KeyManagers or in creating the KeyStore
      IOException - if there is an error loading the KeyStore
      See Also:
    • getKeyStore

      public @Nullable KeyStoreParameters getKeyStore()
    • setKeyStore

      public void setKeyStore(@Nullable KeyStoreParameters value)
      The key store configuration used to create the KeyStore that the KeyManagers produced by this object's configuration expose.
      Parameters:
      value - the configuration to use
    • getKeyPassword

      public @Nullable String getKeyPassword()
    • setKeyPassword

      public void setKeyPassword(@Nullable String value)
      The password for recovering keys in the key store. Used by the KeyManagerFactory that creates the KeyManagers represented by this object's configuration.
      Parameters:
      value - the value to use
    • getProvider

      public @Nullable String getProvider()
    • setProvider

      public void setProvider(@Nullable String value)
      The provider identifier for the KeyManagerFactory used to create the KeyManagers represented by this object's configuration.
      Parameters:
      value - the desired provider identifier or null to use the highest priority provider implementing the algorithm
      See Also:
    • getAlgorithm

      public @Nullable String getAlgorithm()
    • setAlgorithm

      public void setAlgorithm(@Nullable String value)
      The algorithm name for the KeyManagerFactory used to create the KeyManagers represented by this object's configuration. See the See https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html
      Parameters:
      value - the desired algorithm or null to use default
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object