Table of Contents

Class SecretKeyFactory

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

Constructors

SecretKeyFactory(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 SecretKeyFactory(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

GenerateSecret(KeySpec)

public SecretKey GenerateSecret(KeySpec arg0)

Parameters

arg0 KeySpec

KeySpec

Returns

SecretKey

SecretKey

Exceptions

InvalidKeySpecException

GetAlgorithm()

public String GetAlgorithm()

Returns

String

String

GetInstance(String)

public static SecretKeyFactory GetInstance(String arg0)

Parameters

arg0 String

String

Returns

SecretKeyFactory

SecretKeyFactory

Exceptions

NoSuchAlgorithmException

GetInstance(String, String)

public static SecretKeyFactory GetInstance(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

SecretKeyFactory

SecretKeyFactory

Exceptions

NoSuchAlgorithmException
NoSuchProviderException

GetInstance(String, Provider)

public static SecretKeyFactory GetInstance(String arg0, Provider arg1)

Parameters

arg0 String

String

arg1 Provider

Provider

Returns

SecretKeyFactory

SecretKeyFactory

Exceptions

NoSuchAlgorithmException

GetKeySpec(SecretKey, Class)

public KeySpec GetKeySpec(SecretKey arg0, Class arg1)

Parameters

arg0 SecretKey

SecretKey

arg1 Class

Class

Returns

KeySpec

KeySpec

Exceptions

InvalidKeySpecException

GetProvider()

public Provider GetProvider()

Returns

Provider

Provider

TranslateKey(SecretKey)

public SecretKey TranslateKey(SecretKey arg0)

Parameters

arg0 SecretKey

SecretKey

Returns

SecretKey

SecretKey

Exceptions

InvalidKeyException