xml.CryptoKey.savePublic

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

Syntax

savePublic()
  RETURNS xml.DomDocument

Usage

This method saves the public key parts of an RSA, DSA or ECDSA 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.DomDocument object.

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