Search in sources :

Example 6 with KeyStoreFactoryBean

use of org.springframework.ws.soap.security.support.KeyStoreFactoryBean in project open-smart-grid-platform by OSGP.

the class SoapClientConfig method trustStore.

@Bean
public KeyStoreFactoryBean trustStore() {
    final KeyStoreFactoryBean keyStoreFactoryBean = new KeyStoreFactoryBean();
    keyStoreFactoryBean.setLocation(this.trustStore);
    keyStoreFactoryBean.setPassword(this.trustStorePassword);
    return keyStoreFactoryBean;
}
Also used : KeyStoreFactoryBean(org.springframework.ws.soap.security.support.KeyStoreFactoryBean) TrustManagersFactoryBean(org.springframework.ws.soap.security.support.TrustManagersFactoryBean) KeyStoreFactoryBean(org.springframework.ws.soap.security.support.KeyStoreFactoryBean) KeyManagersFactoryBean(org.springframework.ws.soap.security.support.KeyManagersFactoryBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

KeyStoreFactoryBean (org.springframework.ws.soap.security.support.KeyStoreFactoryBean)6 Bean (org.springframework.context.annotation.Bean)4 FileSystemResource (org.springframework.core.io.FileSystemResource)4 KeyStore (java.security.KeyStore)2 KeyStoreException (java.security.KeyStoreException)2 KeyManagersFactoryBean (org.springframework.ws.soap.security.support.KeyManagersFactoryBean)2 TrustManagersFactoryBean (org.springframework.ws.soap.security.support.TrustManagersFactoryBean)2 IOException (java.io.IOException)1 GeneralSecurityException (java.security.GeneralSecurityException)1 HostnameVerifier (javax.net.ssl.HostnameVerifier)1 SSLContext (javax.net.ssl.SSLContext)1 DefaultHostnameVerifier (org.apache.http.conn.ssl.DefaultHostnameVerifier)1 NoopHostnameVerifier (org.apache.http.conn.ssl.NoopHostnameVerifier)1 SSLConnectionSocketFactory (org.apache.http.conn.ssl.SSLConnectionSocketFactory)1 TrustSelfSignedStrategy (org.apache.http.conn.ssl.TrustSelfSignedStrategy)1 WebServiceSecurityException (org.opensmartgridplatform.shared.exceptionhandling.WebServiceSecurityException)1