GetInstance() 공개 정적인 메소드

public static GetInstance ( Asn1TaggedObject obj, bool explicitly ) : AuthorityKeyIdentifier
obj Org.BouncyCastle.Asn1.Asn1TaggedObject
explicitly bool
리턴 AuthorityKeyIdentifier
예제 #1
0
 public static AuthorityKeyIdentifier GetInstance(object obj)
 {
     if (obj is AuthorityKeyIdentifier)
     {
         return((AuthorityKeyIdentifier)obj);
     }
     if (obj is Asn1Sequence)
     {
         return(new AuthorityKeyIdentifier((Asn1Sequence)obj));
     }
     if (obj is X509Extension)
     {
         return(AuthorityKeyIdentifier.GetInstance(X509Extension.ConvertValueToObject((X509Extension)obj)));
     }
     throw new ArgumentException("unknown object in factory: " + obj.GetType().Name, "obj");
 }
예제 #2
0
 public static AuthorityKeyIdentifier GetInstance(Asn1TaggedObject obj, bool explicitly)
 {
     return(AuthorityKeyIdentifier.GetInstance(Asn1Sequence.GetInstance(obj, explicitly)));
 }