예제 #1
0
		/**
		 * @param status
		 * @param statusString
		 */
		public PkiStatusInfo(
			int			status,
			PkiFreeText	statusString)
		{
			this.status = new DerInteger(status);
			this.statusString = statusString;
		}
예제 #2
0
		public PkiStatusInfo(
			Asn1Sequence seq)
		{
			this.status = DerInteger.GetInstance(seq[0]);

			this.statusString = null;
			this.failInfo = null;

			if (seq.Count > 2)
			{
				this.statusString = PkiFreeText.GetInstance(seq[1]);
				this.failInfo = DerBitString.GetInstance(seq[2]);
			}
			else if (seq.Count > 1)
			{
				object obj = seq[1];
				if (obj is DerBitString)
				{
					this.failInfo = DerBitString.GetInstance(obj);
				}
				else
				{
					this.statusString = PkiFreeText.GetInstance(obj);
				}
			}
		}
예제 #3
0
		public PkiStatusInfo(
			int				status,
			PkiFreeText		statusString,
			PkiFailureInfo	failInfo)
		{
			this.status = new DerInteger(status);
			this.statusString = statusString;
			this.failInfo = failInfo;
		}
예제 #4
0
		private PollRepContent(Asn1Sequence seq)
		{
			certReqId = DerInteger.GetInstance(seq[0]);
			checkAfter = DerInteger.GetInstance(seq[1]);

			if (seq.Count > 2)
			{
				reason = PkiFreeText.GetInstance(seq[2]);
			}
		}
예제 #5
0
        private PollRepContent(Asn1Sequence seq)
        {
            certReqId  = DerInteger.GetInstance(seq[0]);
            checkAfter = DerInteger.GetInstance(seq[1]);

            if (seq.Count > 2)
            {
                reason = PkiFreeText.GetInstance(seq[2]);
            }
        }
예제 #6
0
		public ErrorMsgContent(
			PkiStatusInfo	pkiStatusInfo,
			DerInteger		errorCode,
			PkiFreeText		errorDetails)
		{
			if (pkiStatusInfo == null)
				throw new ArgumentNullException("pkiStatusInfo");

			this.pkiStatusInfo = pkiStatusInfo;
			this.errorCode = errorCode;
			this.errorDetails = errorDetails;
		}
예제 #7
0
        public ErrorMsgContent(
            PkiStatusInfo pkiStatusInfo,
            DerInteger errorCode,
            PkiFreeText errorDetails)
        {
            if (pkiStatusInfo == null)
            {
                throw new ArgumentNullException("pkiStatusInfo");
            }

            this.pkiStatusInfo = pkiStatusInfo;
            this.errorCode     = errorCode;
            this.errorDetails  = errorDetails;
        }
예제 #8
0
        private ErrorMsgContent(Asn1Sequence seq)
        {
            pkiStatusInfo = PkiStatusInfo.GetInstance(seq[0]);

            for (int pos = 1; pos < seq.Count; ++pos)
            {
                Asn1Encodable ae = seq[pos];
                if (ae is DerInteger)
                {
                    errorCode = DerInteger.GetInstance(ae);
                }
                else
                {
                    errorDetails = PkiFreeText.GetInstance(ae);
                }
            }
        }
예제 #9
0
		private ErrorMsgContent(Asn1Sequence seq)
		{
			pkiStatusInfo = PkiStatusInfo.GetInstance(seq[0]);

			for (int pos = 1; pos < seq.Count; ++pos)
			{
				Asn1Encodable ae = seq[pos];
				if (ae is DerInteger)
				{
					errorCode = DerInteger.GetInstance(ae);
				}
				else
				{
					errorDetails = PkiFreeText.GetInstance(ae);
				}
			}
		}