static MyIOSet ()
		{
			TypeIdentifier ti1 = 
				new TypeIdentifier(aux_oid1, new ASN1Boolean_type());

			TypeIdentifier ti2 = 
				new TypeIdentifier(aux_oid2, ASN1Null.asn1type);

			ioset = new ASN1InformationObjectSet();
			
			ioset.Add(ti1);
			ioset.Add(ti2);
		}
		public void Add(ASN1ObjectIdentifier oid, ASN1Type type)
		{
			TypeIdentifier ti = new TypeIdentifier(oid, type);
			this.Add(ti);
		}
Пример #3
0
		public void Test_TYPE_IDENTIFIER ()
		{
			Console.WriteLine("Ustvari i nemam neku inspiraciju oko toga sto bi mogao\n"+
				"testirati samo sa TYPE-IDENTIFIER konstruktima\n");


			// TYPE IDENTIFIER sa OBJECT IDENTIFIEROM i NULL memberom...
			TypeIdentifier ti = new TypeIdentifier();
			ti.Assign(SimpleSamples.funnyOID, new ASN1Null_type());
		   

			TypeIdentifier ti1 = new TypeIdentifier(SimpleSamples.funnyOID, new ASN1ObjectIdentifier_type());
			
		}
Пример #4
0
		public void Test_INFORMATION_OBJECT_SET ()
		{
			ASN1InformationObjectSet iob_set1 = new ASN1InformationObjectSet();
				
			TypeIdentifier ti = new TypeIdentifier();
			ti.Assign(SimpleSamples.funnyOID, new ASN1Null_type());

			iob_set1.Add(ti);
			
			UniqueObject uniqo = new UniqueObject();
			//uniqo.


			
		}
		public void Test_INFORMATION_OBJECT_SET ()
		{
			ASN1InformationObjectSet iob_set1 = new ASN1InformationObjectSet();
				
			TypeIdentifier ti1 = new TypeIdentifier();
			ti1.Assign(SimpleSamples.funnyOID, ASN1Null.asn1type);

			TypeIdentifier ti2 = new TypeIdentifier();
			ti2.Assign(new ASN1ObjectIdentifier(1, 2, 3), new ASN1Boolean_type());

			iob_set1.Add(ti1);
			
			ASN1ObjectIdentifier unique = new ASN1ObjectIdentifier();
			unique.Assign(1, 2, 3, 4);


			Console.WriteLine("To be cont...");
		}