Stay organized with collections
Save and categorize content based on your preferences.
SSLKeyException
open class SSLKeyException : SSLException
Reports a bad SSL key. Normally, this indicates misconfiguration of the server or client SSL certificate and private key.
Summary
Public constructors |
Constructs an exception reporting a key management error found by an SSL subsystem.
|
Public constructors
SSLKeyException
SSLKeyException(reason: String!)
Constructs an exception reporting a key management error found by an SSL subsystem.
Parameters |
reason |
String!: describes the problem. |
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,["# SSLKeyException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSSLKeyException\n===============\n\n```\nopen class SSLKeyException : SSLException\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.io.IOException](../../../java/io/IOException.html#) |||\n| | | | ↳ | [javax.net.ssl.SSLException](/reference/kotlin/javax/net/ssl/SSLException) ||\n| | | | | ↳ | [javax.net.ssl.SSLKeyException](#) |\n\nReports a bad SSL key. Normally, this indicates misconfiguration of the server or client SSL certificate and private key.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [SSLKeyException](#SSLKeyException(kotlin.String))`(`reason:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an exception reporting a key management error found by an SSL subsystem. |\n\nPublic constructors\n-------------------\n\n### SSLKeyException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSSLKeyException(reason: String!)\n```\n\nConstructs an exception reporting a key management error found by an SSL subsystem.\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------|\n| `reason` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: describes the problem. |"]]