Esempio n. 1
0
        public HMACAuthenticator(AuthenticationData authenticationData)
        {
            string secretKey = _dao.GetSecretKey(authenticationData.SharedKey);

            if (secretKey == null)
            {
                throw new SecurityException("Invalid shared key");
            }
            _hmac.Key = Encoding.UTF8.GetBytes(secretKey);
        }