Java.Security.SecureRandom Members

The members of Java.Security.SecureRandom are listed below.

See Also: Inherited members from Java.Util.Random

Public Constructors

Constructs a new SecureRandom that uses the default algorithm.
Constructs a new seeded SecureRandom that uses the default algorithm.

Protected Constructors

Constructs a new instance of SecureRandom using the given implementation from the specified provider.
A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
Algorithmstring. Returns the name of the algorithm of this SecureRandom.
[read-only]
ProviderProvider. Returns the provider associated with this SecureRandom.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GenerateSeed(int) : byte[]
Generates and returns the specified number of seed bytes, computed using the seed generation algorithm used by this SecureRandom.
static
GetInstance(string) : SecureRandom
Returns a new instance of SecureRandom that utilizes the specified algorithm.
static
GetInstance(string, Provider) : SecureRandom
Returns a new instance of SecureRandom that utilizes the specified algorithm from the specified provider.
static
GetInstance(string, string) : SecureRandom
Returns a new instance of SecureRandom that utilizes the specified algorithm from the specified provider.
static
GetSeed(int) : byte[]
Generates and returns the specified number of seed bytes, computed using the seed generation algorithm used by this SecureRandom.
SetSeed(byte[])
Seeds this SecureRandom instance with the specified seed.

Protected Methods

override
Next(int) : int
Generates and returns an int containing the specified number of random bits (right justified, with leading zeros).