Table of Contents

Class SecureRandom

Namespace
Java.Security
Assembly
MASES.Netdroid.dll
public class SecureRandom : Random, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IRandomGenerator, ISerializable
Inheritance
SecureRandom
Implements
Inherited Members
Extension Methods

Constructors

SecureRandom()

public SecureRandom()

SecureRandom(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public SecureRandom(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

SecureRandom(byte[])

public SecureRandom(byte[] arg0)

Parameters

arg0 byte[]

byte

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

CreatePoolableInstance()

HPA initializer for SecureRandom()

public static SecureRandom CreatePoolableInstance()

Returns

SecureRandom

CreatePoolableInstance(byte[])

HPA initializer for SecureRandom(byte[] arg0)

public static SecureRandom CreatePoolableInstance(byte[] arg0)

Parameters

arg0 byte[]

Returns

SecureRandom

GenerateSeed(int)

public byte[] GenerateSeed(int arg0)

Parameters

arg0 int

int

Returns

byte[]

byte

GetAlgorithm()

public String GetAlgorithm()

Returns

String

String

GetInstance(String)

public static SecureRandom GetInstance(String arg0)

Parameters

arg0 String

String

Returns

SecureRandom

SecureRandom

Exceptions

NoSuchAlgorithmException

GetInstance(String, String)

public static SecureRandom GetInstance(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

SecureRandom

SecureRandom

Exceptions

NoSuchAlgorithmException
NoSuchProviderException

GetInstance(String, Provider)

public static SecureRandom GetInstance(String arg0, Provider arg1)

Parameters

arg0 String

String

arg1 Provider

Provider

Returns

SecureRandom

SecureRandom

Exceptions

NoSuchAlgorithmException

GetInstanceStrong()

public static SecureRandom GetInstanceStrong()

Returns

SecureRandom

SecureRandom

Exceptions

NoSuchAlgorithmException

GetProvider()

public Provider GetProvider()

Returns

Provider

Provider

GetSeed(int)

public static byte[] GetSeed(int arg0)

Parameters

arg0 int

int

Returns

byte[]

byte

Reseed()

public void Reseed()

SetSeed(byte[])

public void SetSeed(byte[] arg0)

Parameters

arg0 byte[]

byte