Table of Contents

Class KeyGenerator

Namespace
Javax.Crypto
Assembly
MASES.Netdroid.dll
public class KeyGenerator : JVMBridgeBase<KeyGenerator>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Inheritance
KeyGenerator
Implements
Extension Methods

Constructors

KeyGenerator(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 KeyGenerator(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

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

GenerateKey()

public SecretKey GenerateKey()

Returns

SecretKey

SecretKey

GetAlgorithm()

public String GetAlgorithm()

Returns

String

String

GetInstance(String)

public static KeyGenerator GetInstance(String arg0)

Parameters

arg0 String

String

Returns

KeyGenerator

KeyGenerator

Exceptions

NoSuchAlgorithmException

GetInstance(String, String)

public static KeyGenerator GetInstance(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

KeyGenerator

KeyGenerator

Exceptions

NoSuchAlgorithmException
NoSuchProviderException

GetInstance(String, Provider)

public static KeyGenerator GetInstance(String arg0, Provider arg1)

Parameters

arg0 String

String

arg1 Provider

Provider

Returns

KeyGenerator

KeyGenerator

Exceptions

NoSuchAlgorithmException

GetProvider()

public Provider GetProvider()

Returns

Provider

Provider

Init(SecureRandom)

public void Init(SecureRandom arg0)

Parameters

arg0 SecureRandom

SecureRandom

Init(AlgorithmParameterSpec)

public void Init(AlgorithmParameterSpec arg0)

Parameters

arg0 AlgorithmParameterSpec

AlgorithmParameterSpec

Exceptions

InvalidAlgorithmParameterException

Init(AlgorithmParameterSpec, SecureRandom)

public void Init(AlgorithmParameterSpec arg0, SecureRandom arg1)

Parameters

arg0 AlgorithmParameterSpec

AlgorithmParameterSpec

arg1 SecureRandom

SecureRandom

Exceptions

InvalidAlgorithmParameterException

Init(int)

public void Init(int arg0)

Parameters

arg0 int

int

Init(int, SecureRandom)

public void Init(int arg0, SecureRandom arg1)

Parameters

arg0 int

int

arg1 SecureRandom

SecureRandom