nice to know, thanks!

Gonzalo Vásquez Sáez
Gerente Investigación y Desarrollo (R&D)
Altiuz Soluciones Tecnológicas de Negocios Ltda.
Av. Nueva Tajamar 555 Of. 802, Las Condes - CP 7550099
+56 2 335 2461
gvasq...@altiuz.cl
http://www.altiuz.cl
http://www.altiuzreports.com
  


El 14-11-2014, a las 14:28, Colm O hEigeartaigh <cohei...@apache.org> escribió:

>> Line breaks: Here I have no solution. The component uses Apache Santuario
>> or the JSR105 implementation of the JRE. Mybe you can find more
> information
>> in the Santuario spec.
> 
> Line breaks are controlled by the System property
> "org.apache.xml.security.ignoreLineBreaks". So if you want to add line
> breaks, simply define system property
> "org.apache.xml.security.ignoreLineBreaks=false".
> 
> Colm.
> 
> On Fri, Nov 14, 2014 at 9:58 AM, Franz Paul Forsthofer <
> emc2...@googlemail.com> wrote:
> 
>> Hello Gonzalo Vàsquez,
>> 
>> KeyValue:  PublicKey key = cert.getPublicKey();
>>                 KeyValue keyInfoFactory.newKeyValue(key);
>> 
>>        List<Object> keyInfoContent = new ArrayList<Object>(1));
>>        if (keyValue != null) {
>>            keyInfoContent.add(keyValue);
>>        }
>>        KeyInfo keyInfo = keyInfoFactory.newKeyInfo(keyInfoContent,
>> keyInfoId)
>> 
>> Additional References: see
>> http://camel.apache.org/xml-security-component.html and there in the
>> chapter "Signing Option" you find the option 'properties': "For adding
>> additional References and Objects to the XML signature which contain
>> additional properties, you can provide a bean which implements the
>> XmlSignatureProperties
>> <
>> https://github.com/apache/camel/blob/master/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/XmlSignatureProperties.java
>>> 
>> interface."
>> 
>> Line breaks: Here I have no solution. The component uses Apache Santuario
>> or the JSR105 implementation of the JRE. Mybe you can find more information
>> in the Santuario spec.
>> 
>> Regards Franz
>> 
>> On Wed, Nov 12, 2014 at 9:29 PM, Gonzalo Vasquez <gvasq...@altiuz.cl>
>> wrote:
>> 
>>> Dear list members,
>>> 
>>> Can you please provide me hints on how to improve my current keyAccesor
>>> to achieve adding the KeyValue node in the KeyInfo element?
>>> 
>>> Regarding the base64 encoded parts, how can I force the linebreaks to
>>> avoid never-ending lines?
>>> 
>>> I'm also missing a Reference element in the SignedInfo, and don't know
>>> how to add it.
>>> 
>>> Any additional comments would also be appreciated.
>>> 
>>> Please see attached files:
>>> 
>>> 1.- signed.xml: current output format
>>> 2.- signed2.xml: desired format
>>> 3.- spring-ws-servlet.xml: current spring/camel config
>>> 4.- Java Files: KeyAccesor / Selector
>>>  Gonzalo Vásquez Sáez
>>> Gerente Investigación y Desarrollo (R&D)
>>> Altiuz Soluciones Tecnológicas de Negocios Ltda.
>>> Av. Nueva Tajamar 555 Of. 802, Las Condes - CP 7550099
>>> +56 2 335 2461
>>>  gvasq...@altiuz.cl
>>> http://www.altiuz.cl
>>> http://www.altiuzreports.com
>>>  <https://www.facebook.com/altiuz>  <http://twitter.com/altiuz>
>>> <http://www.linkedin.com/company/altiuz>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
> 
> 
> 
> -- 
> Colm O hEigeartaigh
> 
> Talend Community Coder
> http://coders.talend.com

Reply via email to