public virtual AttributeTypeAndValue[] ToAttributeTypeAndValueArray() { AttributeTypeAndValue[] result = new AttributeTypeAndValue[content.Count]; for (int i = 0; i != result.Length; ++i) { result[i] = AttributeTypeAndValue.GetInstance(content[i]); } return result; }
public virtual AttributeTypeAndValue[] ToAttributeTypeAndValueArray() { AttributeTypeAndValue[] result = new AttributeTypeAndValue[content.Count]; for (int i = 0; i != result.Length; ++i) { result[i] = AttributeTypeAndValue.GetInstance(content[i]); } return(result); }
public virtual AttributeTypeAndValue[] GetRegInfo() { if (regInfo == null) return null; AttributeTypeAndValue[] results = new AttributeTypeAndValue[regInfo.Count]; for (int i = 0; i != results.Length; ++i) { results[i] = AttributeTypeAndValue.GetInstance(regInfo[i]); } return results; }
public virtual AttributeTypeAndValue[] GetRegInfo() { if (regInfo == null) { return(null); } AttributeTypeAndValue[] results = new AttributeTypeAndValue[regInfo.Count]; for (int i = 0; i != results.Length; ++i) { results[i] = AttributeTypeAndValue.GetInstance(regInfo[i]); } return(results); }
/** * Creates a new CertReqMsg. * @param certReq CertRequest * @param popo may be null * @param regInfo may be null */ public CertReqMsg( CertRequest certReq, ProofOfPossession popo, AttributeTypeAndValue[] regInfo) { if (certReq == null) throw new ArgumentNullException("certReq"); this.certReq = certReq; this.popo = popo; if (regInfo != null) { this.regInfo = new DerSequence(regInfo); } }