check_key


Description:

public static bool check_key (string key) throws Error

Checks whether key is a valid user data key.

This means, key is not null, not too large and valid ASCII. Also, only digits and numbers are allowed with a few special characters. The key must contain at least one '.' and look like a fully qualified DNS name.

Parameters:

key

the key to check

Returns:

true if key is a valid user data key.