test-my-signature/src/main/java/se/idsec/signservice/integration/app/config/JavaApiSignServiceIntegrationConfiguration.java
@Bean
  public ExtendedSignServiceIntegrationService signServiceIntegrationService(final IntegrationServiceConfiguration config) throws Exception {
    DefaultSignServiceIntegrationService service = new DefaultSignServiceIntegrationService();
    service.setPdfSignaturePagePreparator(new DefaultPdfSignaturePagePreparator());
    final DefaultConfigurationManager cfgMgr = new DefaultConfigurationManager(Collections.singletonMap(config.getPolicy(), config));
    cfgMgr.setDefaultPolicyName(this.policyName);
    service.setConfigurationManager(cfgMgr);
    DefaultSignatureStateProcessor stateProcessor = new DefaultSignatureStateProcessor();
    stateProcessor.setStateCache(null);
    stateProcessor.setConfigurationManager(cfgMgr);
    stateProcessor.afterPropertiesSet();
    service.setSignatureStateProcessor(stateProcessor);
    service.setSignRequestProcessor(this.signRequestProcessor());
    service.setSignResponseProcessor(this.signResponseProcessor());
    return service;
  }
/**
   * Gets the bean for the SignService Integration Service.
   * 
   * @return SignServiceIntegrationService bean
   * @throws Exception
   *           for bean init errors
   */
Gets the bean for the SignService Integration Service.

@return SignServiceIntegrationService bean
@throws Exception
for bean init errors
Gets the bean for the SignService Integration Service . @return SignServiceIntegrationService bean @throws Exception for bean init errors
@Bean
  public ExtendedSignServiceIntegrationService signServiceIntegrationService(final IntegrationServiceConfiguration config) throws Exception {
    DefaultSignServiceIntegrationService service = new DefaultSignServiceIntegrationService();
    service.setPdfSignaturePagePreparator(new DefaultPdfSignaturePagePreparator());
    final DefaultConfigurationManager cfgMgr = new DefaultConfigurationManager(Collections.singletonMap(config.getPolicy(), config));
    cfgMgr.setDefaultPolicyName(this.policyName);
    service.setConfigurationManager(cfgMgr);
    DefaultSignatureStateProcessor stateProcessor = new DefaultSignatureStateProcessor();
    stateProcessor.setStateCache(null);
    stateProcessor.setConfigurationManager(cfgMgr);
    stateProcessor.afterPropertiesSet();
    service.setSignatureStateProcessor(stateProcessor);
    service.setSignRequestProcessor(this.signRequestProcessor());
    service.setSignResponseProcessor(this.signResponseProcessor());
    return service;
  }
@ Bean public ExtendedSignServiceIntegrationService signServiceIntegrationService ( final IntegrationServiceConfiguration config ) throws Exception { DefaultSignServiceIntegrationService service = new DefaultSignServiceIntegrationService ( ) ; service . setPdfSignaturePagePreparator ( new DefaultPdfSignaturePagePreparator ( ) ) ; final DefaultConfigurationManager cfgMgr = new DefaultConfigurationManager ( Collections . singletonMap ( config . getPolicy ( ) , config ) ) ; cfgMgr . setDefaultPolicyName ( this . policyName ) ; service . setConfigurationManager ( cfgMgr ) ; DefaultSignatureStateProcessor stateProcessor = new DefaultSignatureStateProcessor ( ) ; stateProcessor . setStateCache ( null ) ; stateProcessor . setConfigurationManager ( cfgMgr ) ; stateProcessor . afterPropertiesSet ( ) ; service . setSignatureStateProcessor ( stateProcessor ) ; service . setSignRequestProcessor ( this . signRequestProcessor ( ) ) ; service . setSignResponseProcessor ( this . signResponseProcessor ( ) ) ; return service ; }
Gets the bean for the SignService Integration Service.
Gets the bean for the SignService Integration Service .