Class TrustManagersFactoryBean

java.lang.Object
org.springframework.ws.soap.security.support.TrustManagersFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<TrustManager[]>, org.springframework.beans.factory.InitializingBean

public class TrustManagersFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<TrustManager[]>, org.springframework.beans.factory.InitializingBean
Spring factory bean for an array of TrustManagers.

Uses the TrustManagerFactory to create the TrustManagers.

Since:
2.2
Author:
Arjen Poutsma
See Also:
  • Constructor Details

    • TrustManagersFactoryBean

      public TrustManagersFactoryBean()
  • Method Details

    • setProvider

      public void setProvider(String provider)
      Sets the provider of the trust manager to use. If this is not set, the default is used.
    • setAlgorithm

      public void setAlgorithm(String algorithm)
      Sets the algorithm of the TrustManager to use. If this is not set, the default is used.
      See Also:
    • setKeyStore

      public void setKeyStore(KeyStore keyStore)
      Sets the source of certificate authorities and related trust material.
      See Also:
    • getObject

      public TrustManager[] getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<TrustManager[]>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<TrustManager[]>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<TrustManager[]>
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception