Stay organized with collections
Save and categorize content based on your preferences.
SSLPeerUnverifiedException
open class SSLPeerUnverifiedException : SSLException
Indicates that the peer's identity has not been verified.
When the peer was not able to identify itself (for example; no certificate, the particular cipher suite being used does not support authentication, or no peer authentication was established during SSL handshaking) this exception is thrown.
Summary
Public constructors |
Constructs an exception reporting that the SSL peer's identity has not been verified.
|
Public constructors
SSLPeerUnverifiedException
SSLPeerUnverifiedException(reason: String!)
Constructs an exception reporting that the SSL peer's identity has not been verified.
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,["# SSLPeerUnverifiedException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSSLPeerUnverifiedException\n==========================\n\n```\nopen class SSLPeerUnverifiedException : 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.SSLPeerUnverifiedException](#) |\n\nIndicates that the peer's identity has not been verified.\n\nWhen the peer was not able to identify itself (for example; no certificate, the particular cipher suite being used does not support authentication, or no peer authentication was established during SSL handshaking) this exception is thrown.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [SSLPeerUnverifiedException](#SSLPeerUnverifiedException(kotlin.String))`(`reason:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an exception reporting that the SSL peer's identity has not been verified. |\n\nPublic constructors\n-------------------\n\n### SSLPeerUnverifiedException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSSLPeerUnverifiedException(reason: String!)\n```\n\nConstructs an exception reporting that the SSL peer's identity has not been verified.\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------|\n| `reason` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: describes the problem. |"]]