Search in sources :

Example 1 with SAMLDelegationHandler

use of org.apache.cxf.sts.token.delegation.SAMLDelegationHandler in project cas by apereo.

the class CoreWsSecuritySecurityTokenServiceConfiguration method delegationHandlers.

@RefreshScope
@Bean
public List<TokenDelegationHandler> delegationHandlers() {
    final List<TokenDelegationHandler> handlers = new ArrayList<>();
    handlers.add(new SAMLDelegationHandler());
    handlers.add(new X509TokenDelegationHandler());
    return handlers;
}
Also used : SAMLDelegationHandler(org.apache.cxf.sts.token.delegation.SAMLDelegationHandler) ArrayList(java.util.ArrayList) X509TokenDelegationHandler(org.apereo.cas.support.x509.X509TokenDelegationHandler) TokenDelegationHandler(org.apache.cxf.sts.token.delegation.TokenDelegationHandler) X509TokenDelegationHandler(org.apereo.cas.support.x509.X509TokenDelegationHandler) 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

ArrayList (java.util.ArrayList)1 STSPropertiesMBean (org.apache.cxf.sts.STSPropertiesMBean)1 SAMLDelegationHandler (org.apache.cxf.sts.token.delegation.SAMLDelegationHandler)1 TokenDelegationHandler (org.apache.cxf.sts.token.delegation.TokenDelegationHandler)1 X509TokenDelegationHandler (org.apereo.cas.support.x509.X509TokenDelegationHandler)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