Package swiss.trustbroker.wstrust.config
Class WebServiceConfiguration
java.lang.Object
swiss.trustbroker.wstrust.config.WebServiceConfiguration
- All Implemented Interfaces:
org.springframework.ws.config.annotation.WsConfigurer
@EnableWs
@Configuration
public class WebServiceConfiguration
extends Object
implements org.springframework.ws.config.annotation.WsConfigurer
-
Constructor Summary
ConstructorsConstructorDescriptionWebServiceConfiguration(org.springframework.core.io.ResourceLoader resourceLoader, swiss.trustbroker.config.TrustBrokerProperties trustBrokerProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgumentResolvers(List<org.springframework.ws.server.endpoint.adapter.method.MethodArgumentResolver> argumentResolvers) voidaddInterceptors(List<org.springframework.ws.server.EndpointInterceptor> interceptors) voidaddReturnValueHandlers(List<org.springframework.ws.server.endpoint.adapter.method.MethodReturnValueHandler> returnValueHandlers) org.springframework.ws.soap.server.SoapEndpointInterceptorendpointInterceptor(Transformer transformer) org.springframework.ws.soap.server.endpoint.SoapFaultMappingExceptionResolverexceptionResolver(swiss.trustbroker.exception.GlobalExceptionHandler globalExceptionHandler) org.springframework.boot.web.servlet.ServletRegistrationBean<org.springframework.ws.transport.http.MessageDispatcherServlet> messageDispatcherServlet(org.springframework.context.ApplicationContext applicationContext) org.springframework.ws.soap.SoapMessageFactorymessageFactory(org.springframework.ws.soap.saaj.SaajSoapMessageFactory messageFactory11, org.springframework.ws.soap.saaj.SaajSoapMessageFactory messageFactory12) org.springframework.ws.soap.saaj.SaajSoapMessageFactoryorg.springframework.ws.soap.saaj.SaajSoapMessageFactoryorg.springframework.ws.soap.security.wss4j2.Wss4jSecurityInterceptororg.springframework.ws.soap.security.wss4j2.support.CryptoFactoryBeanstatic Transformer
-
Constructor Details
-
WebServiceConfiguration
public WebServiceConfiguration(org.springframework.core.io.ResourceLoader resourceLoader, swiss.trustbroker.config.TrustBrokerProperties trustBrokerProperties)
-
-
Method Details
-
transformer
-
messageDispatcherServlet
@Bean @ConditionalOnBooleanProperty("trustbroker.config.wstrust.enabled") public org.springframework.boot.web.servlet.ServletRegistrationBean<org.springframework.ws.transport.http.MessageDispatcherServlet> messageDispatcherServlet(org.springframework.context.ApplicationContext applicationContext) -
messageFactory
@Bean public org.springframework.ws.soap.SoapMessageFactory messageFactory(@Qualifier("messageFactory11") org.springframework.ws.soap.saaj.SaajSoapMessageFactory messageFactory11, @Qualifier("messageFactory12") org.springframework.ws.soap.saaj.SaajSoapMessageFactory messageFactory12) -
messageFactory11
@Bean public org.springframework.ws.soap.saaj.SaajSoapMessageFactory messageFactory11() -
messageFactory12
@Bean public org.springframework.ws.soap.saaj.SaajSoapMessageFactory messageFactory12() -
endpointInterceptor
@Bean public org.springframework.ws.soap.server.SoapEndpointInterceptor endpointInterceptor(Transformer transformer) -
addInterceptors
- Specified by:
addInterceptorsin interfaceorg.springframework.ws.config.annotation.WsConfigurer
-
addArgumentResolvers
public void addArgumentResolvers(List<org.springframework.ws.server.endpoint.adapter.method.MethodArgumentResolver> argumentResolvers) - Specified by:
addArgumentResolversin interfaceorg.springframework.ws.config.annotation.WsConfigurer
-
addReturnValueHandlers
public void addReturnValueHandlers(List<org.springframework.ws.server.endpoint.adapter.method.MethodReturnValueHandler> returnValueHandlers) - Specified by:
addReturnValueHandlersin interfaceorg.springframework.ws.config.annotation.WsConfigurer
-
securityInterceptor
@Bean public org.springframework.ws.soap.security.wss4j2.Wss4jSecurityInterceptor securityInterceptor() throws Exception- Throws:
Exception
-
serverKeyStoreCryptoFactoryBean
@Bean @ConditionalOnExpression("#{${trustbroker.config.security.validateSecurityTokenRequest:true} or ${trustbroker.config.wstrust.doSignResponse:true}}") public org.springframework.ws.soap.security.wss4j2.support.CryptoFactoryBean serverKeyStoreCryptoFactoryBean() throws IOException- Throws:
IOException
-
exceptionResolver
@Bean public org.springframework.ws.soap.server.endpoint.SoapFaultMappingExceptionResolver exceptionResolver(swiss.trustbroker.exception.GlobalExceptionHandler globalExceptionHandler)
-