DHPrivateKey
Stay organized with collections
Save and categorize content based on your preferences.
The interface to a Diffie-Hellman private key.
Constant Summary
long |
serialVersionUID |
The class fingerprint that is set to indicate serialization
compatibility since J2SE 1.4. |
Inherited Constant Summary
From interface
java.security.Key
long |
serialVersionUID |
The class fingerprint that is set to indicate
serialization compatibility with a previous
version of the class. |
Public Method Summary
abstract
BigInteger
|
getX()
Returns the private value, x .
|
Inherited Method Summary
From interface
java.security.Key
abstract
String
|
getAlgorithm()
Returns the standard algorithm name for this key.
|
abstract
byte[]
|
getEncoded()
Returns the key in its primary encoding format, or null
if this key does not support encoding.
|
abstract
String
|
getFormat()
Returns the name of the primary encoding format of this key,
or null if this key does not support encoding.
|
Constants
public
static
final
long
serialVersionUID
The class fingerprint that is set to indicate serialization
compatibility since J2SE 1.4.
Constant Value:
2211791113380396553
Public Methods
public
abstract
BigInteger
getX
()
Returns the private value, x
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-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 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eDHPrivateKey\u003c/code\u003e represents a Diffie-Hellman private key used in cryptography.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the private value (\u003ccode\u003ex\u003c/code\u003e) and key parameters through its methods.\u003c/p\u003e\n"],["\u003cp\u003eThe interface inherits functionalities from \u003ccode\u003eDHKey\u003c/code\u003e, \u003ccode\u003ePrivateKey\u003c/code\u003e, and other related interfaces for key management and encoding.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDHPrivateKey\u003c/code\u003e includes a constant, \u003ccode\u003eserialVersionUID\u003c/code\u003e, for serialization compatibility.\u003c/p\u003e\n"]]],[],null,["# DHPrivateKey\n\npublic interface **DHPrivateKey** implements [DHKey](../../../../reference/javax/crypto/interfaces/DHKey.html) [PrivateKey](../../../../reference/java/security/PrivateKey.html) \nThe interface to a Diffie-Hellman private key. \n\n##### See Also\n\n- [DHKey](../../../../reference/javax/crypto/interfaces/DHKey.html)\n- [DHPublicKey](../../../../reference/javax/crypto/interfaces/DHPublicKey.html) \n\n### Constant Summary\n\n|------|------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/javax/crypto/interfaces/DHPrivateKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4. |\n\n### Inherited Constant Summary\n\nFrom interface [java.security.PrivateKey](../../../../reference/java/security/PrivateKey.html) \n\n|------|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/PrivateKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |\n\nFrom interface [java.security.Key](../../../../reference/java/security/Key.html) \n\n|------|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/Key.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |\n\n### Public Method Summary\n\n|---------------------|------------------------------------------------------------------------------------------------------------------|\n| abstract BigInteger | [getX](../../../../reference/javax/crypto/interfaces/DHPrivateKey.html#getX())() Returns the private value, `x`. |\n\n### Inherited Method Summary\n\nFrom interface [javax.crypto.interfaces.DHKey](../../../../reference/javax/crypto/interfaces/DHKey.html) \n\n|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| abstract [DHParameterSpec](../../../../reference/javax/crypto/spec/DHParameterSpec.html) | [getParams](../../../../reference/javax/crypto/interfaces/DHKey.html#getParams())() Returns the key parameters. |\n\nFrom interface [java.security.Key](../../../../reference/java/security/Key.html) \n\n|----------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [String](../../../../reference/java/lang/String.html) | [getAlgorithm](../../../../reference/java/security/Key.html#getAlgorithm())() Returns the standard algorithm name for this key. |\n| abstract byte\\[\\] | [getEncoded](../../../../reference/java/security/Key.html#getEncoded())() Returns the key in its primary encoding format, or null if this key does not support encoding. |\n| abstract [String](../../../../reference/java/lang/String.html) | [getFormat](../../../../reference/java/security/Key.html#getFormat())() Returns the name of the primary encoding format of this key, or null if this key does not support encoding. |\n\nFrom interface [javax.security.auth.Destroyable](../../../../reference/javax/security/auth/Destroyable.html) \n\n|---------|------------------------------------------------------------------------------------------------------------------------------------------|\n| void | [destroy](../../../../reference/javax/security/auth/Destroyable.html#destroy())() Destroy this `Object`. |\n| boolean | [isDestroyed](../../../../reference/javax/security/auth/Destroyable.html#isDestroyed())() Determine if this `Object` has been destroyed. |\n\nConstants\n---------\n\n#### public static final long\n**serialVersionUID**\n\nThe class fingerprint that is set to indicate serialization\ncompatibility since J2SE 1.4. \nConstant Value: 2211791113380396553\n\nPublic Methods\n--------------\n\n#### public abstract BigInteger\n**getX**\n()\n\nReturns the private value, `x`. \n\n##### Returns\n\n- the private value, `x`"]]