Stay organized with collections
Save and categorize content based on your preferences.
KeyNotYetValidException
open class KeyNotYetValidException : InvalidKeyException
Indicates that a cryptographic operation failed because the employed key's validity start date is in the future.
Summary
Public constructors |
Constructs a new KeyNotYetValidException without detail message and cause.
|
Constructs a new KeyNotYetValidException with the provided detail message and no cause.
|
Constructs a new KeyNotYetValidException with the provided detail message and cause.
|
Public constructors
KeyNotYetValidException
KeyNotYetValidException()
Constructs a new KeyNotYetValidException
without detail message and cause.
KeyNotYetValidException
KeyNotYetValidException(message: String!)
Constructs a new KeyNotYetValidException
with the provided detail message and no cause.
KeyNotYetValidException
KeyNotYetValidException(
message: String!,
cause: Throwable!)
Constructs a new KeyNotYetValidException
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# KeyNotYetValidException\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nKeyNotYetValidException\n=======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/security/keystore/KeyNotYetValidException \"View this page in Java\") \n\n```\nopen class KeyNotYetValidException : 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.KeyNotYetValidException](#) |\n\nIndicates that a cryptographic operation failed because the employed key's validity start date is in the future.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [KeyNotYetValidException](#KeyNotYetValidException())`()` Constructs a new `KeyNotYetValidException` without detail message and cause. |\n| [KeyNotYetValidException](#KeyNotYetValidException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a new `KeyNotYetValidException` with the provided detail message and no cause. |\n| [KeyNotYetValidException](#KeyNotYetValidException(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 `KeyNotYetValidException` with the provided detail message and cause. |\n\nPublic constructors\n-------------------\n\n### KeyNotYetValidException\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nKeyNotYetValidException()\n```\n\nConstructs a new `KeyNotYetValidException` without detail message and cause. \n\n### KeyNotYetValidException\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nKeyNotYetValidException(message: String!)\n```\n\nConstructs a new `KeyNotYetValidException` with the provided detail message and no cause. \n\n### KeyNotYetValidException\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nKeyNotYetValidException(\n message: String!, \n cause: Throwable!)\n```\n\nConstructs a new `KeyNotYetValidException` with the provided detail message and cause."]]