public static GetInstance ( Asn1TaggedObject obj, bool explicitly ) : |
||
obj | Asn1TaggedObject | |
explicitly | bool | |
Résultat |
public static SubjectKeyIdentifier GetInstance(object obj) { if (obj is SubjectKeyIdentifier) { return((SubjectKeyIdentifier)obj); } if (obj is SubjectPublicKeyInfo) { return(new SubjectKeyIdentifier((SubjectPublicKeyInfo)obj)); } if (obj is Asn1OctetString) { return(new SubjectKeyIdentifier((Asn1OctetString)obj)); } if (obj is X509Extension) { return(SubjectKeyIdentifier.GetInstance(X509Extension.ConvertValueToObject((X509Extension)obj))); } throw new ArgumentException("Invalid SubjectKeyIdentifier: " + obj.GetType().Name); }
public static SubjectKeyIdentifier GetInstance(Asn1TaggedObject obj, bool explicitly) { return(SubjectKeyIdentifier.GetInstance(Asn1OctetString.GetInstance(obj, explicitly))); }