コード例 #1
0
        internal EcCryptographyProvider(JsonWebKey jwk)
        {
            Argument.AssertNotNull(jwk, nameof(jwk));

            // Only set the JWK if we support the algorithm locally.
            _curve = KeyCurveName.Find(jwk.CurveName);
            if (_curve != default)
            {
                // TODO: Log that we don't support the algorithm locally.
                _jwk = jwk;
            }
        }