test-my-signature/src/main/java/se/idsec/signservice/integration/app/config/JavaApiSignServiceIntegrationConfiguration.java
@Bean
  public SignRequestProcessor signRequestProcessor() throws Exception {
    DefaultSignRequestProcessor processor = new DefaultSignRequestProcessor();
    processor.setTbsDocumentProcessors(Arrays.asList(new XmlTbsDocumentProcessor(), new PdfTbsDocumentProcessor()));
    DefaultSignMessageProcessor signMessageProcessor = new DefaultSignMessageProcessor();
    signMessageProcessor.setIdpMetadataResolver(new OpenSAMLIdpMetadataResolver(this.metadataProvider.getMetadataResolver()));
    signMessageProcessor.afterPropertiesSet();
    processor.setSignMessageProcessor(signMessageProcessor);
    return processor;
  }
/**
   * Creates a sign request processor.
   * 
   * @return a SignRequestProcessor bean
   * @throws Exception
   *           for bean init errors
   */
Creates a sign request processor.

@return a SignRequestProcessor bean
@throws Exception
for bean init errors
Creates a sign request processor . @return a SignRequestProcessor bean @throws Exception for bean init errors
@Bean
  public SignRequestProcessor signRequestProcessor() throws Exception {
    DefaultSignRequestProcessor processor = new DefaultSignRequestProcessor();
    processor.setTbsDocumentProcessors(Arrays.asList(new XmlTbsDocumentProcessor(), new PdfTbsDocumentProcessor()));
    DefaultSignMessageProcessor signMessageProcessor = new DefaultSignMessageProcessor();
    signMessageProcessor.setIdpMetadataResolver(new OpenSAMLIdpMetadataResolver(this.metadataProvider.getMetadataResolver()));
    signMessageProcessor.afterPropertiesSet();
    processor.setSignMessageProcessor(signMessageProcessor);
    return processor;
  }
@ Bean public SignRequestProcessor signRequestProcessor ( ) throws Exception { DefaultSignRequestProcessor processor = new DefaultSignRequestProcessor ( ) ; processor . setTbsDocumentProcessors ( Arrays . asList ( new XmlTbsDocumentProcessor ( ) , new PdfTbsDocumentProcessor ( ) ) ) ; DefaultSignMessageProcessor signMessageProcessor = new DefaultSignMessageProcessor ( ) ; signMessageProcessor . setIdpMetadataResolver ( new OpenSAMLIdpMetadataResolver ( this . metadataProvider . getMetadataResolver ( ) ) ) ; signMessageProcessor . afterPropertiesSet ( ) ; processor . setSignMessageProcessor ( signMessageProcessor ) ; return processor ; }
Creates a sign request processor.
Creates a sign request processor .