コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PolicyInformationPoint"/> class.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <param name="requestDoc">The request document.</param>
        public PolicyInformationPoint(XacmlContextRequest request, XmlDocument requestDoc) {
            Contract.Requires<ArgumentNullException>(request != null);
            Contract.Requires<ArgumentNullException>(requestDoc != null);

            this.request = request;
            this.attributesProcessor = AttributesProcessor.Instance;
            this.xpathProcessor = XPathProcessor.Instance;
            this.requestDocument = requestDoc;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PolicyInformationPoint"/> class.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <param name="requestDoc">The request document.</param>
        public PolicyInformationPoint(XacmlContextRequest request, XmlDocument requestDoc)
        {
            if (request == null)
            {
                throw new ArgumentNullException(nameof(request));
            }

            if (requestDoc == null)
            {
                throw new ArgumentNullException(nameof(requestDoc));
            }

            this.request             = request;
            this.attributesProcessor = AttributesProcessor.Instance;
            this.xpathProcessor      = XPathProcessor.Instance;
            this.requestDocument     = requestDoc;
        }