Stay organized with collections
Save and categorize content based on your preferences.
DHPrivateKey
interface DHPrivateKey : DHKey, PrivateKey
The interface to a Diffie-Hellman private key.
Summary
Constants |
static Long |
The class fingerprint that is set to indicate serialization compatibility since J2SE 1.
|
Public methods |
abstract BigInteger! |
Returns the private value, x .
|
Constants
serialVersionUID
static val serialVersionUID: Long
The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4.
Value: 2211791113380396553L
Public methods
getX
abstract fun getX(): BigInteger!
Returns the private value, x
.
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,["# DHPrivateKey\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDHPrivateKey\n============\n\n```\ninterface DHPrivateKey : DHKey, PrivateKey\n```\n\n|-------------------------------------------|\n| [javax.crypto.interfaces.DHPrivateKey](#) |\n\nThe interface to a Diffie-Hellman private key.\n\nSummary\n-------\n\n| Constants ||\n|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [serialVersionUID](#serialVersionUID:kotlin.Long) The class fingerprint that is set to indicate serialization compatibility since J2SE 1. |\n\n| Public methods ||\n|-------------------------------------------------------------|-----------------------------------------------------|\n| abstract [BigInteger](../../../java/math/BigInteger.html#)! | [getX](#getX())`()` Returns the private value, `x`. |\n\n| Inherited functions ||\n|---|---|\n| From class [DHKey](/reference/kotlin/javax/crypto/interfaces/DHKey) |---------------------------------------------------|-----------------------------------------------------------------------------------------------------------------| | [DHParameterSpec](../spec/DHParameterSpec.html#)! | [getParams](/reference/kotlin/javax/crypto/interfaces/DHKey#getParams())`()` Returns the key parameters. \u003cbr /\u003e | ||\n\nConstants\n---------\n\n### serialVersionUID\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val serialVersionUID: Long\n```\n\nThe class fingerprint that is set to indicate serialization compatibility since J2SE 1.4. \n\n Value: 2211791113380396553L\n\nPublic methods\n--------------\n\n### getX\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun getX(): BigInteger!\n```\n\nReturns the private value, `x`.\n\n| Return ||\n|----------------------------------------------------|------------------------|\n| [BigInteger](../../../java/math/BigInteger.html#)! | the private value, `x` |"]]