Stay organized with collections
Save and categorize content based on your preferences.
SSLHandshakeException
open class SSLHandshakeException : SSLException
Indicates that the client and server could not negotiate the desired level of security. The connection is no longer usable.
Summary
Public constructors |
Constructs an exception reporting an error found by an SSL subsystem during handshaking.
|
Public constructors
SSLHandshakeException
SSLHandshakeException(reason: String!)
Constructs an exception reporting an error found by an SSL subsystem during handshaking.
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.
[[["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,["# SSLHandshakeException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSSLHandshakeException\n=====================\n\n```\nopen class SSLHandshakeException : 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.SSLHandshakeException](#) |\n\nIndicates that the client and server could not negotiate the desired level of security. The connection is no longer usable.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [SSLHandshakeException](#SSLHandshakeException(kotlin.String))`(`reason:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an exception reporting an error found by an SSL subsystem during handshaking. |\n\nPublic constructors\n-------------------\n\n### SSLHandshakeException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSSLHandshakeException(reason: String!)\n```\n\nConstructs an exception reporting an error found by an SSL subsystem during handshaking.\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------|\n| `reason` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: describes the problem. |"]]