示例#1
0
 public virtual InfoTypeAndValue[] ToInfoTypeAndValueArray()
 {
     InfoTypeAndValue[] result = new InfoTypeAndValue[content.Count];
     for (int i = 0; i != result.Length; ++i)
     {
         result[i] = InfoTypeAndValue.GetInstance(content[i]);
     }
     return(result);
 }
示例#2
0
		public virtual InfoTypeAndValue[] ToInfoTypeAndValueArray()
		{
			InfoTypeAndValue[] result = new InfoTypeAndValue[content.Count];
			for (int i = 0; i != result.Length; ++i)
			{
				result[i] = InfoTypeAndValue.GetInstance(content[i]);
			}
			return result;
		}
示例#3
0
 public virtual InfoTypeAndValue[] GetGeneralInfo()
 {
     if (generalInfo == null)
     {
         return(null);
     }
     InfoTypeAndValue[] results = new InfoTypeAndValue[generalInfo.Count];
     for (int i = 0; i < results.Length; i++)
     {
         results[i] = InfoTypeAndValue.GetInstance(generalInfo[i]);
     }
     return(results);
 }
		private static Asn1Sequence MakeGeneralInfoSeq(
			InfoTypeAndValue[] generalInfos)
		{
			Asn1Sequence genInfoSeq = null;
			if (generalInfos != null)
			{
				Asn1EncodableVector v = new Asn1EncodableVector();
				for (int i = 0; i < generalInfos.Length; ++i)
				{
					v.Add(generalInfos[i]);
				}
				genInfoSeq = new DerSequence(v);
			}
			return genInfoSeq;
		}
		private static Asn1Sequence MakeGeneralInfoSeq(
			InfoTypeAndValue generalInfo)
		{
			return new DerSequence(generalInfo);
		}
		public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue[] genInfos)
		{
			return SetGeneralInfo(MakeGeneralInfoSeq(genInfos));
		}
示例#7
0
 private static Asn1Sequence MakeGeneralInfoSeq(
     InfoTypeAndValue generalInfo)
 {
     return(new DerSequence(generalInfo));
 }
示例#8
0
 public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue genInfo)
 {
     return(SetGeneralInfo(MakeGeneralInfoSeq(genInfo)));
 }
示例#9
0
 public virtual InfoTypeAndValue[] GetGeneralInfo()
 {
     if (generalInfo == null)
     {
         return null;
     }
     InfoTypeAndValue[] results = new InfoTypeAndValue[generalInfo.Count];
     for (int i = 0; i < results.Length; i++)
     {
         results[i] = InfoTypeAndValue.GetInstance(generalInfo[i]);
     }
     return results;
 }