xml.CryptoKey.saveToString

Saves the CryptoKey object into a BASE64 string format.

Syntax

saveToString()
  RETURNS STRING

Usage

For Diffie-Hellman, this method returns the Diffie-Hellman key's modulus and generator in a base64 encoded string. This is used for the parameters exchange step between the two peers.

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