GetInstance() 공개 정적인 메소드

public static GetInstance ( Asn1TaggedObject obj, bool explicitly ) : RevokedInfo
obj Org.BouncyCastle.Asn1.Asn1TaggedObject
explicitly bool
리턴 RevokedInfo
예제 #1
0
        public CertStatus(Asn1TaggedObject choice)
        {
            tagNo = choice.TagNo;
            switch (choice.TagNo)
            {
            case 1:
                value = RevokedInfo.GetInstance(choice, explicitly: false);
                break;

            case 0:
            case 2:
                value = DerNull.Instance;
                break;
            }
        }
예제 #2
0
        public CertStatus(Asn1TaggedObject choice)
        {
            this.tagNo = choice.TagNo;
            switch (choice.TagNo)
            {
            case 0:
            case 2:
                this.value = DerNull.Instance;
                return;

            case 1:
                this.value = RevokedInfo.GetInstance(choice, false);
                return;

            default:
                return;
            }
        }
예제 #3
0
        public CertStatus(
            Asn1TaggedObject choice)
        {
            this.tagNo = choice.TagNo;

            switch (choice.TagNo)
            {
            case 1:
                value = RevokedInfo.GetInstance(choice, false);
                break;

            case 0:
            case 2:
                value = DerNull.Instance;
                break;

            default:
                throw new ArgumentException("Unknown tag encountered: " + choice.TagNo);
            }
        }
예제 #4
0
 public static RevokedInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
 {
     return(RevokedInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly)));
 }