KeyStoreException.ErrorIncorrectUsage Field

Definition

Caution

This constant will be removed in the future version. Use Android.Security.KeyStoreExceptionError enum directly instead of this field.

The feature the caller is trying to use is not compatible with the parameters used to generate the key.

[Android.Runtime.Register("ERROR_INCORRECT_USAGE", ApiSince=33)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Security.KeyStoreExceptionError enum directly instead of this field.", true)]
public const Android.Security.KeyStoreExceptionError ErrorIncorrectUsage = 13;

Field Value

Value = 13
Attributes

Remarks

The feature the caller is trying to use is not compatible with the parameters used to generate the key. For example, trying to use a key generated for a different signature algorithm, or a digest not specified during key creation. Another case is the attempt to generate a symmetric AES key and requesting key attestation.

Java documentation for android.security.KeyStoreException.ERROR_INCORRECT_USAGE.

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