예제 #1
0
 /// <summary>
 /// Creates a new Request using the parameters specified.
 /// </summary>
 /// <param name="subjects">The subjects list.</param>
 /// <param name="resources">The resource requested</param>
 /// <param name="action">The action requested.</param>
 /// <param name="environment">Any environment attribute part of the request.</param>
 /// <param name="schemaVersion">The version of the schema that was used to validate.</param>
 public RequestElementReadWrite(SubjectReadWriteCollection subjects, ResourceReadWriteCollection resources, ActionElementReadWrite action, EnvironmentElementReadWrite environment, XacmlVersion schemaVersion)
     : base(XacmlSchema.Context, schemaVersion)
 {
     _subjects    = subjects;
     _resources   = resources;
     _action      = action;
     _environment = environment;
 }
예제 #2
0
 /// <summary>
 /// Creates a new Request using the parameters specified.
 /// </summary>
 /// <param name="subjects">The subjects list.</param>
 /// <param name="resources">The resource requested</param>
 /// <param name="action">The action requested.</param>
 /// <param name="environment">Any environment attribute part of the request.</param>
 /// <param name="schemaVersion">The version of the schema that was used to validate.</param>
 public RequestElementReadWrite(SubjectReadWriteCollection subjects, ResourceReadWriteCollection resources, ActionElementReadWrite action, EnvironmentElementReadWrite environment, XacmlVersion schemaVersion)
     : base(XacmlSchema.Context, schemaVersion)
 {
     _subjects = subjects;
     _resources = resources;
     _action = action;
     _environment = environment;
 }
예제 #3
0
 /// <summary>
 /// Creates a SubjectCollection with the provided SubjectReadWriteCollection
 /// </summary>
 /// <param name="items"></param>
 public SubjectCollection(SubjectReadWriteCollection items)
 {
     if (items == null) throw new ArgumentNullException("items");
     foreach (SubjectElementReadWrite item in items)
     {
         this.Add(item);
     }
 }
예제 #4
0
 /// <summary>
 /// Creates a SubjectCollection with the provided SubjectReadWriteCollection
 /// </summary>
 /// <param name="items"></param>
 public SubjectCollection(SubjectReadWriteCollection items)
 {
     if (items == null)
     {
         throw new ArgumentNullException("items");
     }
     foreach (SubjectElementReadWrite item in items)
     {
         this.Add(item);
     }
 }