XMLTooling - Is it possible to not emit <ds:KeyInfo> in C++?
Marcel.Selhorst at BDR.de
Thu Nov 1 12:58:24 EDT 2012
I currently have an issue regarding the generation and emitting of the <ds:KeyInfo>-Object in the C++-Version of XMLTooling:
I am using OpenSAML to generate signed SAMLRequests including encrypted extensions.
For privacy reasons I don't want to emit additional key information such as <ds:KeyName> and <ds:X509Data>
(including the used certificate in <ds:X509Certificate and the SubjectName in <ds:X509SubjectName>),
which is in C++ by default emitted within the signature as well as the encrypted extension.
In Java I managed to remove this by simply using the KeyInfoGeneratorFactory and setting setEmit* to 'false', similar to this:
X509KeyInfoGeneratorFactory kiFactory = new X509KeyInfoGeneratorFactory();
KeyInfo sigKeyInfo =
However, I can't find a solution for this in C++.
Trying something like:
KeyInfo* foo = KeyInfoBuilder::buildKeyInfo();
always includes the aforementioned key information...
Any clue how I can do this with C++?
Thanks in advance and best regards!
More information about the users