Search in sources :

Example 1 with SecurityTokenServiceProvider

use of org.apache.cxf.ws.security.sts.provider.SecurityTokenServiceProvider in project cas by apereo.

the class CoreWsSecuritySecurityTokenServiceConfiguration method transportSTSProviderBean.

@RefreshScope
@Bean
public Provider transportSTSProviderBean() {
    try {
        final SecurityTokenServiceProvider provider = new SecurityTokenServiceProvider();
        provider.setIssueOperation(transportIssueDelegate());
        provider.setValidateOperation(transportValidateDelegate());
        return provider;
    } catch (final Exception e) {
        throw new BeanCreationException(e.getMessage(), e);
    }
}
Also used : BeanCreationException(org.springframework.beans.factory.BeanCreationException) SecurityTokenServiceProvider(org.apache.cxf.ws.security.sts.provider.SecurityTokenServiceProvider) BeanCreationException(org.springframework.beans.factory.BeanCreationException) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) STSPropertiesMBean(org.apache.cxf.sts.STSPropertiesMBean) ServletRegistrationBean(org.springframework.boot.web.servlet.ServletRegistrationBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

STSPropertiesMBean (org.apache.cxf.sts.STSPropertiesMBean)1 SecurityTokenServiceProvider (org.apache.cxf.ws.security.sts.provider.SecurityTokenServiceProvider)1 BeanCreationException (org.springframework.beans.factory.BeanCreationException)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 ServletRegistrationBean (org.springframework.boot.web.servlet.ServletRegistrationBean)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1