Table of Contents

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

value BigInteger

DerInteger(byte[])

public DerInteger(byte[] bytes)

Parameters

bytes byte[]

DerInteger(int)

public DerInteger(int value)

Parameters

value int

DerInteger(long)

public DerInteger(long value)

Parameters

value long

Fields

AllowUnsafeProperty

public const string AllowUnsafeProperty = "Org.BouncyCastle.Asn1.AllowUnsafeInteger"

Field Value

string

Five

public static readonly DerInteger Five

Field Value

DerInteger

Four

public static readonly DerInteger Four

Field Value

DerInteger

One

public static readonly DerInteger One

Field Value

DerInteger

Three

public static readonly DerInteger Three

Field Value

DerInteger

Two

public static readonly DerInteger Two

Field Value

DerInteger

Zero

public static readonly DerInteger Zero

Field Value

DerInteger

Properties

IntPositiveValueExact

public int IntPositiveValueExact { get; }

Property Value

int

IntValueExact

public int IntValueExact { get; }

Property Value

int

LongValueExact

public long LongValueExact { get; }

Property Value

long

PositiveValue

public BigInteger PositiveValue { get; }

Property Value

BigInteger

Value

public BigInteger Value { get; }

Property Value

BigInteger

Methods

Asn1Equals(Asn1Object)

protected override bool Asn1Equals(Asn1Object asn1Object)

Parameters

asn1Object Asn1Object

Returns

bool

Asn1GetHashCode()

protected override int Asn1GetHashCode()

Returns

int

GetInstance(Asn1TaggedObject, bool)

public static DerInteger GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)

Parameters

taggedObject Asn1TaggedObject
declaredExplicit bool

Returns

DerInteger

GetInstance(object)

public static DerInteger GetInstance(object obj)

Parameters

obj object

Returns

DerInteger

GetOptional(Asn1Encodable)

public static DerInteger GetOptional(Asn1Encodable element)

Parameters

element Asn1Encodable

Returns

DerInteger

GetTagged(Asn1TaggedObject, bool)

public static DerInteger GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit)

Parameters

taggedObject Asn1TaggedObject
declaredExplicit bool

Returns

DerInteger

HasValue(BigInteger)

public bool HasValue(BigInteger x)

Parameters

x BigInteger

Returns

bool

HasValue(int)

public bool HasValue(int x)

Parameters

x int

Returns

bool

HasValue(long)

public bool HasValue(long x)

Parameters

x long

Returns

bool

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

value int

Returns

bool

TryGetIntValueExact(out int)

public bool TryGetIntValueExact(out int value)

Parameters

value int

Returns

bool

TryGetLongValueExact(out long)

public bool TryGetLongValueExact(out long value)

Parameters

value long

Returns

bool