示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="XacmlPolicy"/> class.
        /// </summary>
        /// <param name="policyId">The policy identifier.</param>
        /// <param name="ruleCombiningAlgId">The rule combining algorithm identifier.</param>
        /// <param name="target">The target.</param>
        public XacmlPolicy(Uri policyId, Uri ruleCombiningAlgId, XacmlTarget target)
        {
            if (policyId == null)
            {
                throw new ArgumentNullException(nameof(policyId));
            }

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

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

            this.policyId           = policyId;
            this.ruleCombiningAlgId = ruleCombiningAlgId;
            this.target             = target;
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XacmlPolicy"/> class.
 /// </summary>
 /// <param name="ruleCombiningAlgId">The rule combining algorithm identifier.</param>
 /// <param name="target">The target.</param>
 public XacmlPolicy(Uri ruleCombiningAlgId, XacmlTarget target)
     : this(XacmlUtils.GeneratePolicyId(), ruleCombiningAlgId, target)
 {
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XacmlPolicySet"/> class.
 /// </summary>
 /// <param name="policyCombiningAlgId">The policy combining alg identifier.</param>
 /// <param name="target">The target.</param>
 public XacmlPolicySet(Uri policyCombiningAlgId, XacmlTarget target)
     : this(XacmlUtils.GeneratePolicySetId(), policyCombiningAlgId, target)
 {
 }