Exemple #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);
 }
Exemple #2
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);
 }
Exemple #3
0
 private static Asn1Sequence MakeGeneralInfoSeq(
     InfoTypeAndValue generalInfo)
 {
     return(new DerSequence(generalInfo));
 }
Exemple #4
0
 public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue genInfo)
 {
     return(SetGeneralInfo(MakeGeneralInfoSeq(genInfo)));
 }