コード例 #1
0
ファイル: Controls.cs プロジェクト: Xanagandr/DisaOpenSource
 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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
        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;
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        /**
         * 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);
            }
        }