code: private ApiKeyAuthenticationInfo createAuthenticationInfo(String authenticationId, ApiKey apiKey) {
          return new ApiKeyAuthenticationInfo(authenticationId, apiKey, getName());
      }
docs: Simple method to build and AuthenticationInfo instance from an API key.