Table of Contents

Class Mac

Namespace
Javax.Crypto
Assembly
MASES.JNet.dll
public class Mac : Cloneable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICloneable
Inheritance
JVMBridgeBase
JVMBridgeBase<Cloneable>
Mac
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Cloneable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Cloneable>.IsAssignableFrom<T>()
JVMBridgeBase<Cloneable>.Execute<T>(params T[])
JVMBridgeBase<Cloneable>.DynBridgeClazz
JVMBridgeBase<Cloneable>.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

Mac()

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

public Mac()

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

MacLength

public int MacLength { get; }

Property Value

int

Provider

public Provider Provider { get; }

Property Value

Provider

Methods

DoFinal()

public byte[] DoFinal()

Returns

byte[]

byte

Exceptions

IllegalStateException

DoFinal(byte[])

public byte[] DoFinal(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

byte[]

byte

Exceptions

IllegalStateException

DoFinal(byte[], int)

public void DoFinal(byte[] arg0, int arg1)

Parameters

arg0 byte[]

byte

arg1 int

int

Exceptions

ShortBufferException
IllegalStateException

GetInstance(String)

public static Mac GetInstance(String arg0)

Parameters

arg0 String

String

Returns

Mac

Mac

Exceptions

NoSuchAlgorithmException

GetInstance(String, String)

public static Mac GetInstance(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

Mac

Mac

Exceptions

NoSuchAlgorithmException
NoSuchProviderException

GetInstance(String, Provider)

public static Mac GetInstance(String arg0, Provider arg1)

Parameters

arg0 String

String

arg1 Provider

Provider

Returns

Mac

Mac

Exceptions

NoSuchAlgorithmException

Init(Key)

public void Init(Key arg0)

Parameters

arg0 Key

Key

Exceptions

InvalidKeyException

Init(Key, AlgorithmParameterSpec)

public void Init(Key arg0, AlgorithmParameterSpec arg1)

Parameters

arg0 Key

Key

arg1 AlgorithmParameterSpec

AlgorithmParameterSpec

Exceptions

InvalidKeyException
InvalidAlgorithmParameterException

Reset()

public void Reset()

Update(ByteBuffer)

public void Update(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Update(byte)

public void Update(byte arg0)

Parameters

arg0 byte

byte

Exceptions

IllegalStateException

Update(byte[])

public void Update(byte[] arg0)

Parameters

arg0 byte[]

byte

Exceptions

IllegalStateException

Update(byte[], int, int)

public void Update(byte[] arg0, int arg1, int arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

Exceptions

IllegalStateException