xml.CryptoKey.savePublic

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 according to the XML-Signature specification for DSA and RSA and Diffie-Hellman key values.

Syntax

savePublic()
  RETURNING object xml.DomDocument

Usage

For Diffie-Hellman, it is useful for the public key exchange between the two peers.

See also the RetrievalMethod feature.

Returns an 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).