public static EncryptedPrivateKeyInfo GetInstance(
object obj)
{
if (obj is EncryptedPrivateKeyInfo)
{
return (EncryptedPrivateKeyInfo) obj;
}
if (obj is Asn1Sequence)
{
return new EncryptedPrivateKeyInfo((Asn1Sequence) obj);
}
throw new ArgumentException("Unknown object in factory: " + obj.GetType().FullName, "obj");
}