EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Can I customize <KeyInfo> tag content?

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#30372
Posted: 08/15/2014 04:17:45
by Venkat S (Basic support level)
Joined: 08/14/2014
Posts: 9

Hi,
the default output of <KeyInfo> tag is as below:
Code
  <ds:KeyInfo>
    <ds:KeyValue>
      <ds:RSAKeyValue>
        <ds:Modulus>...</ds:Modulus>
        <ds:Exponent>AQAB</ds:Exponent>
      </ds:RSAKeyValue>
    </ds:KeyValue>
    <ds:X509Data>
      <ds:X509IssuerSerial>
        <ds:X509IssuerName>...</ds:X509IssuerName>
        <ds:X509SerialNumber>...</ds:X509SerialNumber>
      </ds:X509IssuerSerial>
      <ds:X509SubjectName>....</ds:X509SubjectName>
      <ds:X509Certificate>...</ds:X509Certificate>
    </ds:X509Data>
  </ds:KeyInfo>

But I want only:
Code
   <ds:KeyInfo>
      <ds:X509Data>
         <ds:X509Certificate>...</ds:X509Certificate>
      </ds:X509Data>
   </ds:KeyInfo>

Can i customize this via API or do i have to modify the generated XML?

Thanks
#30376
Posted: 08/15/2014 06:47:21
by Dmytro Bogatskyy (EldoS Corp.)

Thakn you for contacting us.

Please use IncludeKeyValue and IncludeDataParams properties of TElXMLKeyInfoX509Data class, see: https://www.eldos.com/documentation/sb...9data.html
For example:
Code
X509KeyData.IncludeKeyValue := false;
X509KeyData.IncludeDataParams := [xkidX509Certificate];

Reply

Statistics

Topic viewed 467 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!