예제 #1
0
		public OcspResponsesID(
			OcspIdentifier	ocspIdentifier,
			OtherHash		ocspRepHash)
		{
			if (ocspIdentifier == null)
				throw new ArgumentNullException("ocspIdentifier");

			this.ocspIdentifier = ocspIdentifier;
			this.ocspRepHash = ocspRepHash;
		}
예제 #2
0
        public OcspResponsesID(
            OcspIdentifier ocspIdentifier,
            OtherHash ocspRepHash)
        {
            if (ocspIdentifier == null)
            {
                throw new ArgumentNullException("ocspIdentifier");
            }

            this.ocspIdentifier = ocspIdentifier;
            this.ocspRepHash    = ocspRepHash;
        }
예제 #3
0
		private OcspResponsesID(
			Asn1Sequence seq)
		{
			if (seq == null)
				throw new ArgumentNullException("seq");
			if (seq.Count < 1 || seq.Count > 2)
				throw new ArgumentException("Bad sequence size: " + seq.Count, "seq");

			this.ocspIdentifier = OcspIdentifier.GetInstance(seq[0].ToAsn1Object());

			if (seq.Count > 1)
			{
				this.ocspRepHash = OtherHash.GetInstance(seq[1].ToAsn1Object());
			}
		}
예제 #4
0
        private OcspResponsesID(
            Asn1Sequence seq)
        {
            if (seq == null)
            {
                throw new ArgumentNullException("seq");
            }
            if (seq.Count < 1 || seq.Count > 2)
            {
                throw new ArgumentException("Bad sequence size: " + seq.Count, "seq");
            }

            this.ocspIdentifier = OcspIdentifier.GetInstance(seq[0].ToAsn1Object());

            if (seq.Count > 1)
            {
                this.ocspRepHash = OtherHash.GetInstance(seq[1].ToAsn1Object());
            }
        }
예제 #5
0
		public OcspResponsesID(
			OcspIdentifier ocspIdentifier)
			: this(ocspIdentifier, null)
		{
		}
예제 #6
0
 public OcspResponsesID(
     OcspIdentifier ocspIdentifier)
     : this(ocspIdentifier, null)
 {
 }