xml.CryptoKey.getSize

Returns the size of the key in bits.

Syntax

getSize()
  RETURNING size INTEGER

Usage

For a Diffie-Hellman key, returns the size of the key; the size of a Diffie-Hellman key is actually the size of the modulus. If the modulus is not available (null or equal to zero), the method returns zero. In this situation, a return of zero does NOT mean the key is corrupt or unusable.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.