Class DerInteger
- Namespace
- Org.BouncyCastle.Asn1
- Assembly
- BouncyCastle.Cryptography.dll
public class DerInteger : Asn1Object, IAsn1Convertible
- Inheritance
-
DerInteger
- Implements
- Derived
- Inherited Members
Constructors
DerInteger(BigInteger)
public DerInteger(BigInteger value)
Parameters
valueBigInteger
DerInteger(byte[])
public DerInteger(byte[] bytes)
Parameters
bytesbyte[]
DerInteger(int)
public DerInteger(int value)
Parameters
valueint
DerInteger(long)
public DerInteger(long value)
Parameters
valuelong
Fields
AllowUnsafeProperty
public const string AllowUnsafeProperty = "Org.BouncyCastle.Asn1.AllowUnsafeInteger"
Field Value
Five
public static readonly DerInteger Five
Field Value
Four
public static readonly DerInteger Four
Field Value
One
public static readonly DerInteger One
Field Value
Three
public static readonly DerInteger Three
Field Value
Two
public static readonly DerInteger Two
Field Value
Zero
public static readonly DerInteger Zero
Field Value
Properties
IntPositiveValueExact
public int IntPositiveValueExact { get; }
Property Value
IntValueExact
public int IntValueExact { get; }
Property Value
LongValueExact
public long LongValueExact { get; }
Property Value
PositiveValue
public BigInteger PositiveValue { get; }
Property Value
Value
public BigInteger Value { get; }
Property Value
Methods
Asn1Equals(Asn1Object)
protected override bool Asn1Equals(Asn1Object asn1Object)
Parameters
asn1ObjectAsn1Object
Returns
Asn1GetHashCode()
protected override int Asn1GetHashCode()
Returns
GetInstance(Asn1TaggedObject, bool)
public static DerInteger GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)
Parameters
taggedObjectAsn1TaggedObjectdeclaredExplicitbool
Returns
GetInstance(object)
public static DerInteger GetInstance(object obj)
Parameters
objobject
Returns
GetOptional(Asn1Encodable)
public static DerInteger GetOptional(Asn1Encodable element)
Parameters
elementAsn1Encodable
Returns
GetTagged(Asn1TaggedObject, bool)
public static DerInteger GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit)
Parameters
taggedObjectAsn1TaggedObjectdeclaredExplicitbool
Returns
HasValue(BigInteger)
public bool HasValue(BigInteger x)
Parameters
Returns
HasValue(int)
public bool HasValue(int x)
Parameters
xint
Returns
HasValue(long)
public bool HasValue(long x)
Parameters
xlong
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
TryGetIntPositiveValueExact(out int)
public bool TryGetIntPositiveValueExact(out int value)
Parameters
valueint
Returns
TryGetIntValueExact(out int)
public bool TryGetIntValueExact(out int value)
Parameters
valueint
Returns
TryGetLongValueExact(out long)
public bool TryGetLongValueExact(out long value)
Parameters
valuelong