예제 #1
0
        private OcspResponse(
            Asn1Sequence seq)
        {
            responseStatus = new OcspResponseStatus(
                DerEnumerated.GetInstance(seq[0]));

            if (seq.Count == 2)
            {
                responseBytes = ResponseBytes.GetInstance(
                    (Asn1TaggedObject)seq[1], true);
            }
        }
예제 #2
0
        public OcspResponse(
            OcspResponseStatus responseStatus,
            ResponseBytes responseBytes)
        {
            if (responseStatus == null)
            {
                throw new ArgumentNullException("responseStatus");
            }

            this.responseStatus = responseStatus;
            this.responseBytes  = responseBytes;
        }