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

  • 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 KeyStoreParameters getKeyStore()
    • setKeyStore

      public void setKeyStore(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 String getKeyPassword()
    • setKeyPassword

      public void setKeyPassword(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 String getProvider()
    • setProvider

      public void setProvider(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 String getAlgorithm()
    • setAlgorithm

      public void setAlgorithm(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