Share via


ExemptionMechanism.IsCryptoAllowed(IKey) Method

Definition

Returns whether the result blob has been generated successfully by this exemption mechanism.

[Android.Runtime.Register("isCryptoAllowed", "(Ljava/security/Key;)Z", "")]
public bool IsCryptoAllowed (Java.Security.IKey? key);
[<Android.Runtime.Register("isCryptoAllowed", "(Ljava/security/Key;)Z", "")>]
member this.IsCryptoAllowed : Java.Security.IKey -> bool

Parameters

key
IKey

the key the crypto is going to use.

Returns

whether the result blob of the same key has been generated successfully by this exemption mechanism; false if key is null.

Attributes

Exceptions

if an error occurs while determining whether the result blob has been generated successfully.

Remarks

Returns whether the result blob has been generated successfully by this exemption mechanism.

The method also makes sure that the key passed in is the same as the one this exemption mechanism used in initializing and generating phases.

Java documentation for javax.crypto.ExemptionMechanism.isCryptoAllowed(java.security.Key).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to