Stay organized with collections
Save and categorize content based on your preferences.
KeyPermanentlyInvalidatedException
open class KeyPermanentlyInvalidatedException : InvalidKeyException
Indicates that the key can no longer be used because it has been permanently invalidated.
This only occurs for keys which are authorized to be used only if the user has been authenticated. Such keys are permanently and irreversibly invalidated once the secure lock screen is disabled (i.e., reconfigured to None, Swipe or other mode which does not authenticate the user) or when the secure lock screen is forcibly reset (e.g., by Device Admin). Additionally, keys configured to require user authentication to take place for every of the keys, are also permanently invalidated once a new fingerprint is enrolled or once no more fingerprints are enrolled.
Summary
Public constructors |
Constructs a new KeyPermanentlyInvalidatedException without detail message and cause.
|
Constructs a new KeyPermanentlyInvalidatedException with the provided detail message and no cause.
|
Constructs a new KeyPermanentlyInvalidatedException with the provided detail message and cause.
|
Public constructors
KeyPermanentlyInvalidatedException
KeyPermanentlyInvalidatedException()
Constructs a new KeyPermanentlyInvalidatedException
without detail message and cause.
KeyPermanentlyInvalidatedException
KeyPermanentlyInvalidatedException(message: String!)
Constructs a new KeyPermanentlyInvalidatedException
with the provided detail message and no cause.
KeyPermanentlyInvalidatedException
KeyPermanentlyInvalidatedException(
message: String!,
cause: Throwable!)
Constructs a new KeyPermanentlyInvalidatedException
with the provided detail message and cause.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# KeyPermanentlyInvalidatedException\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nKeyPermanentlyInvalidatedException\n==================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/security/keystore/KeyPermanentlyInvalidatedException \"View this page in Java\") \n\n```\nopen class KeyPermanentlyInvalidatedException : InvalidKeyException\n```\n\n|---|---|---|---|---|---|-------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||||\n| | ↳ | [java.lang.Exception](../../../java/lang/Exception.html#) |||||\n| | | ↳ | [java.security.GeneralSecurityException](../../../java/security/GeneralSecurityException.html#) ||||\n| | | | ↳ | [java.security.KeyException](../../../java/security/KeyException.html#) |||\n| | | | | ↳ | [java.security.InvalidKeyException](../../../java/security/InvalidKeyException.html#) ||\n| | | | | | ↳ | [android.security.keystore.KeyPermanentlyInvalidatedException](#) |\n\nIndicates that the key can no longer be used because it has been permanently invalidated.\n\nThis only occurs for keys which are authorized to be used only if the user has been authenticated. Such keys are permanently and irreversibly invalidated once the secure lock screen is disabled (i.e., reconfigured to None, Swipe or other mode which does not authenticate the user) or when the secure lock screen is forcibly reset (e.g., by Device Admin). Additionally, keys configured to require user authentication to take place for every of the keys, are also permanently invalidated once a new fingerprint is enrolled or once no more fingerprints are enrolled.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [KeyPermanentlyInvalidatedException](#KeyPermanentlyInvalidatedException())`()` Constructs a new `KeyPermanentlyInvalidatedException` without detail message and cause. |\n| [KeyPermanentlyInvalidatedException](#KeyPermanentlyInvalidatedException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a new `KeyPermanentlyInvalidatedException` with the provided detail message and no cause. |\n| [KeyPermanentlyInvalidatedException](#KeyPermanentlyInvalidatedException(kotlin.String,%20kotlin.Throwable))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Constructs a new `KeyPermanentlyInvalidatedException` with the provided detail message and cause. |\n\nPublic constructors\n-------------------\n\n### KeyPermanentlyInvalidatedException\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nKeyPermanentlyInvalidatedException()\n```\n\nConstructs a new `KeyPermanentlyInvalidatedException` without detail message and cause. \n\n### KeyPermanentlyInvalidatedException\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nKeyPermanentlyInvalidatedException(message: String!)\n```\n\nConstructs a new `KeyPermanentlyInvalidatedException` with the provided detail message and no cause. \n\n### KeyPermanentlyInvalidatedException\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nKeyPermanentlyInvalidatedException(\n message: String!, \n cause: Throwable!)\n```\n\nConstructs a new `KeyPermanentlyInvalidatedException` with the provided detail message and cause."]]