public static GetInstance ( |
||
obj | ||
isExplicit | bool | |
return |
public static DerInteger GetInstance(
Asn1TaggedObject obj,
bool isExplicit)
{
if (obj == null)
throw new ArgumentNullException("obj");
Asn1Object o = obj.GetObject();
if (isExplicit || o is DerInteger)
{
return GetInstance(o);
}
return new DerInteger(Asn1OctetString.GetInstance(o).GetOctets());
}
DerInteger::GetInstance ( object obj ) : |