Inheritance: Asn1Encodable
		/**
		 * Returns the targets in this target information extension.
		 * <p>
		 * The ArrayList is cloned before it is returned.</p>
		 * 
		 * @return Returns the targets.
		 */
		public virtual Targets[] GetTargetsObjects()
		{
			Targets[] result = new Targets[targets.Count];

			for (int i = 0; i < targets.Count; ++i)
			{
				result[i] = Targets.GetInstance(targets[i]);
			}

			return result;
		}
		public override void PerformTest()
		{
			Target[] targets = new Target[2];
			Target targetName = new Target(Target.Choice.Name, new GeneralName(GeneralName.DnsName, "www.test.com"));
			Target targetGroup = new Target(Target.Choice.Group, new GeneralName(GeneralName.DirectoryName, "o=Test, ou=Test"));
			targets[0] = targetName;
			targets[1] = targetGroup;
			Targets targetss = new Targets(targets);
			TargetInformation targetInformation1 = new TargetInformation(targetss);
			// use an Target array
			TargetInformation targetInformation2 = new TargetInformation(targets);
			// targetInformation1 and targetInformation2 must have same
			// encoding.
			if (!targetInformation1.Equals(targetInformation2))
			{
				Fail("targetInformation1 and targetInformation2 should have the same encoding.");
			}
			TargetInformation targetInformation3 = TargetInformation.GetInstance(targetInformation1.ToAsn1Object());
			TargetInformation targetInformation4 = TargetInformation.GetInstance(targetInformation2.ToAsn1Object());
			if (!targetInformation3.Equals(targetInformation4))
			{
				Fail("targetInformation3 and targetInformation4 should have the same encoding.");
			}
		}
		/**
		 * Constructs a target information from a single targets element. 
		 * According to RFC 3281 only one targets element must be produced.
		 * 
		 * @param targets A Targets instance.
		 */
		public TargetInformation(
			Targets targets)
		{
			this.targets = new DerSequence(targets);
		}
 /**
  * Constructs a target information from a single targets element.
  * According to RFC 3281 only one targets element must be produced.
  *
  * @param targets A Targets instance.
  */
 public TargetInformation(
     Targets targets)
 {
     this.targets = new DerSequence(targets);
 }