Checks whether an encryption key for the current tenant is present on the server tenant.

Bool ENCRYPTIONKEYEXISTS()

Property Value/Return Value

Value: Boolean

Returns true if the encryption key exists, otherwise false.

Example

This code example performs checks to determine if an encryption key already exists.

 Copy Code
IF ENCRYPTIONENABLED THEN
        IF ENCRYPTIONKEYEXISTS THEN
          MESSAGE('Encryption has been enabled and the encryption key is present in this server instance')
        ELSE
          MESSAGE('Encryption has been enabled but the encryption key is not present on this server instance')
      ELSE
        MESSAGE('Encryption has not been enabled')

See Also