Table of Contents

Class KeyAgreement

Namespace
Javax.Crypto
Assembly
MASES.JNet.dll
public class KeyAgreement : JVMBridgeBase<KeyAgreement>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<KeyAgreement>
KeyAgreement
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<KeyAgreement>.IsAssignableFrom(IJavaType)
JVMBridgeBase<KeyAgreement>.IsAssignableFrom<T>()
JVMBridgeBase<KeyAgreement>.Execute<T>(params T[])
JVMBridgeBase<KeyAgreement>.DynBridgeClazz
JVMBridgeBase<KeyAgreement>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

KeyAgreement()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public KeyAgreement()

KeyAgreement(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public KeyAgreement(params object[] args)

Parameters

args object[]

Properties

Algorithm

public String Algorithm { get; }

Property Value

String

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Provider

public Provider Provider { get; }

Property Value

Provider

Methods

DoPhase(Key, bool)

public Key DoPhase(Key arg0, bool arg1)

Parameters

arg0 Key

Key

arg1 bool

bool

Returns

Key

Key

Exceptions

InvalidKeyException
IllegalStateException

GenerateSecret()

public byte[] GenerateSecret()

Returns

byte[]

byte

Exceptions

IllegalStateException

GenerateSecret(String)

public SecretKey GenerateSecret(String arg0)

Parameters

arg0 String

String

Returns

SecretKey

SecretKey

Exceptions

IllegalStateException
NoSuchAlgorithmException
InvalidKeyException

GenerateSecret(byte[], int)

public int GenerateSecret(byte[] arg0, int arg1)

Parameters

arg0 byte[]

byte

arg1 int

int

Returns

int

int

Exceptions

IllegalStateException
ShortBufferException

GetInstance(String)

public static KeyAgreement GetInstance(String arg0)

Parameters

arg0 String

String

Returns

KeyAgreement

KeyAgreement

Exceptions

NoSuchAlgorithmException

GetInstance(String, String)

public static KeyAgreement GetInstance(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

KeyAgreement

KeyAgreement

Exceptions

NoSuchAlgorithmException
NoSuchProviderException

GetInstance(String, Provider)

public static KeyAgreement GetInstance(String arg0, Provider arg1)

Parameters

arg0 String

String

arg1 Provider

Provider

Returns

KeyAgreement

KeyAgreement

Exceptions

NoSuchAlgorithmException

Init(Key)

public void Init(Key arg0)

Parameters

arg0 Key

Key

Exceptions

InvalidKeyException

Init(Key, SecureRandom)

public void Init(Key arg0, SecureRandom arg1)

Parameters

arg0 Key

Key

arg1 SecureRandom

SecureRandom

Exceptions

InvalidKeyException

Init(Key, AlgorithmParameterSpec)

public void Init(Key arg0, AlgorithmParameterSpec arg1)

Parameters

arg0 Key

Key

arg1 AlgorithmParameterSpec

AlgorithmParameterSpec

Exceptions

InvalidKeyException
InvalidAlgorithmParameterException

Init(Key, AlgorithmParameterSpec, SecureRandom)

public void Init(Key arg0, AlgorithmParameterSpec arg1, SecureRandom arg2)

Parameters

arg0 Key

Key

arg1 AlgorithmParameterSpec

AlgorithmParameterSpec

arg2 SecureRandom

SecureRandom

Exceptions

InvalidKeyException
InvalidAlgorithmParameterException