Exemplo n.º 1
0
        public void HashAlgorithm_Should_Be_SHA384()
        {
            var publicKey = _fixture.Create <RSACryptoServiceProvider>();
            var alg       = new RS384Algorithm(publicKey);

            alg.HashAlgorithm.Should()
            .Be("SHA384");
        }
Exemplo n.º 2
0
        public void Name_Should_Be_RS384()
        {
            var publicKey = _fixture.Create <RSACryptoServiceProvider>();
            var alg       = new RS384Algorithm(publicKey);

            alg.Name.Should()
            .Be(JwtAlgorithmName.RS384.ToString());
        }