Android Guides | Samples

Javax.Crypto.ExemptionMechanism Class

This class implements the functionality of an exemption mechanism such as key recovery, key weakening, or key escrow.

See Also: ExemptionMechanism

Syntax

[Android.Runtime.Register("javax/crypto/ExemptionMechanism", DoNotGenerateAcw=true)]
public class ExemptionMechanism : Object

Remarks

This class implements the functionality of an exemption mechanism such as key recovery, key weakening, or key escrow.

[Android Documentation]

Requirements

Namespace: Javax.Crypto
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Javax.Crypto.ExemptionMechanism are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.
Creates a ExemptionMechanism instance.

Public Properties

[read-only]
NameString. Returns the name of this ExemptionMechanism.
[read-only]
ProviderProvider. Returns the provider of this ExemptionMechanism instance.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GenExemptionBlob() : Byte[]
Generates the result key blob for this exemption mechanism.
GenExemptionBlob(Byte[]) : Int32
Generates the result key blob for this exemption mechanism and stores it into the output buffer.
GenExemptionBlob(Byte[], Int32) : Int32
Generates the result key blob for this exemption mechanism and stores it into the output buffer at offset outputOffset.
static
GetInstance(String) : ExemptionMechanism
Returns a new ExemptionMechanism instance that provides the specified exemption mechanism algorithm.
static
GetInstance(String, Provider) : ExemptionMechanism
Returns a new ExemptionMechanism instance that provides the specified exemption mechanism algorithm from the specified provider.
static
GetInstance(String, String) : ExemptionMechanism
Returns a new ExemptionMechansm instance that provides the specified exemption mechanism algorithm from the specified provider.
GetOutputSize(Int32) : Int32
Returns the size in bytes for the output buffer needed to hold the output of the next ExemptionMechanism.GenExemptionBlob call, given the specified inputLen (in bytes).
Init(IKey)
Initializes this ExemptionMechanism instance with the specified key.
Init(IKey, AlgorithmParameters)
Initializes this ExemptionMechanism instance with the specified key and algorithm parameters.
Init(IKey, IAlgorithmParameterSpec)
Initializes this ExemptionMechanism instance with the specified key and algorithm parameters.
IsCryptoAllowed(IKey) : Boolean
Returns whether the result blob for this ExemptionMechanism instance has been generated successfully and that the specified key is the same as the one that was used to initialize and generate.