Exemple #1
0
        /// <inheritdoc />
        public string GenerateSecuredApiKeys(string parentApiKey, SecuredApiKeyRestriction restriction)
        {
            string queryParams = QueryStringHelper.BuildRestrictionQueryString(restriction);
            string hash        = HmacShaHelper.GetHash(parentApiKey, queryParams);

            return(HmacShaHelper.Base64Encode($"{hash}{queryParams}"));
        }