View Javadoc

1   package org.kuali.student.security.ws.beans;
2   
3   import org.kuali.student.common.ws.beans.CxfJaxWsProxyClientFactory;
4   import org.kuali.student.security.cxf.interceptors.SamlTokenCxfInInterceptor;
5   
6   public class SecureCxfJaxWsProxyClientFactory extends CxfJaxWsProxyClientFactory {
7       private SamlTokenCxfInInterceptor samlTokenInInterceptor;
8       
9       @Override
10      public Object getObject() throws Exception {
11          
12          if(samlTokenInInterceptor != null){
13              this.getInInterceptors().add(samlTokenInInterceptor);
14          }
15          
16          return super.create();
17      }
18  
19      public SamlTokenCxfInInterceptor getSamlTokenInInterceptor() {
20          return samlTokenInInterceptor;
21      }
22  
23      public void setSamlTokenInInterceptor(SamlTokenCxfInInterceptor samlTokenInInterceptor) {
24          this.samlTokenInInterceptor = samlTokenInInterceptor;
25      }
26  	
27  }