xml.CryptoKey.compareTo

Compares a CryptoKey object to a second key.

Syntax

compareTo(
   secondKey xml.CryptoKey )
  RETURNING flag INTEGER
  1. secondKey is the xml.CryptoKey object to use for comparison to the current CryptoKey object.

Usage

The method verifies if the keys URL, type, size, usage and value are the same. If they are the same, the two identical keys will produce the same encryption cipher.

The key features are not taken into account during comparison.

Returns TRUE if they are identical, FALSE if they are not identical.

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