Org.BouncyCastle.Asn1.X509.AuthorityKeyIdentifier.GetInstance C# (CSharp) Method

GetInstance() public static method

public static GetInstance ( Asn1TaggedObject obj, bool explicitly ) : AuthorityKeyIdentifier
obj Org.BouncyCastle.Asn1.Asn1TaggedObject
explicitly bool
return AuthorityKeyIdentifier
		public static AuthorityKeyIdentifier GetInstance(
            Asn1TaggedObject	obj,
            bool				explicitly)
        {
            return GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
        }

Same methods

AuthorityKeyIdentifier::GetInstance ( object obj ) : AuthorityKeyIdentifier

Usage Example

Exemplo n.º 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");
 }
All Usage Examples Of Org.BouncyCastle.Asn1.X509.AuthorityKeyIdentifier::GetInstance