The CryptoKey class / xml.CryptoKey methods |
Compares a CryptoKey object to a second key.
compareTo( secondKey xml.CryptoKey ) RETURNING flag INTEGER
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.