Fix the method getCode.

The function getAuthorityKey and getCode are no longer redundant.
getCode now returns authorityName:authorityKey,
and it has been replaced by method getAuthorityKey() in functions that used it.