Stay organized with collections
Save and categorize content based on your preferences.
MessageDecryptionException
open class MessageDecryptionException : IdentityCredentialException
Thrown when failing to decrypt a message from the reader device.
Summary
Public constructors
MessageDecryptionException
MessageDecryptionException(message: String)
Constructs a new MessageDecryptionException
exception.
Parameters |
message |
String: the detail message. This value cannot be null . |
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,["# MessageDecryptionException\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMessageDecryptionException\n==========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/security/identity/MessageDecryptionException \"View this page in Java\") \n\n```\nopen class MessageDecryptionException : IdentityCredentialException\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| | | ↳ | [android.security.identity.IdentityCredentialException](/reference/kotlin/android/security/identity/IdentityCredentialException) ||\n| | | | ↳ | [android.security.identity.MessageDecryptionException](#) |\n\nThrown when failing to decrypt a message from the reader device.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [MessageDecryptionException](#MessageDecryptionException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Constructs a new [MessageDecryptionException](#) exception. |\n| [MessageDecryptionException](#MessageDecryptionException(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 [MessageDecryptionException](#) exception. |\n\nPublic constructors\n-------------------\n\n### MessageDecryptionException\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nMessageDecryptionException(message: String)\n```\n\nConstructs a new [MessageDecryptionException](#) exception.\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): the detail message. This value cannot be `null`. |\n\n### MessageDecryptionException\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nMessageDecryptionException(\n message: String, \n cause: Throwable)\n```\n\nConstructs a new [MessageDecryptionException](#) exception.\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): the detail message. This value cannot be `null`. |\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html): the cause. This value cannot be `null`. |"]]