The CryptoKey class / xml.CryptoKey methods |
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.
savePublic() RETURNING object xml.DomDocument
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 with the appropriate error number.