Make getPublicKeyName as const method