Esempio n. 1
0
        public bool IsCompliant(X509Certificate2 cert, IPolicyExpression expression)
        {
            if (m_compiler == null)
            {
                throw new InvalidOperationException("Compiler cannot be null");
            }

            if (m_executionEngine == null)
            {
                throw new InvalidOperationException("Execution engine cannot be null");
            }

            IList <IOpCode> opcodes = m_compiler.Compile(cert, expression);

            return(m_executionEngine.Evaluate(opcodes));
        }