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.
Syntax
savePublic()
RETURNS xml.DomDocument
Usage
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).