Saves the public part of an asymmetric RSA or DSA CryptoKey object, or the parameters and the public key of the Diffie-Hellman object into a XML document.


  RETURNS xml.DomDocument


This method saves the public key parts of an RSA or DSA CryptoKey object in an xml.DomDocument.

The asymmetric RSA CryptoKey object public key part is based on the XML-Signature specification for RSA. The DSA CryptoKey object public key part is based on the DSA specification.

For Diffie-Hellman, the method is used for the public key exchanged between the two peers.

See also the CryptoKey RetrievalMethod feature.

Returns a xml.DomDocumentobject.

In case of error, the method throws an exception and sets the status variable. Depending on the error, a human-readable description of the problem is available in the sqlca.sqlerrm register. See Error handling in GWS calls (status).