DHPublicKey
Stay organized with collections
Save and categorize content based on your preferences.
The interface to a Diffie-Hellman public 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
|
getY()
Returns the public value, y .
|
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:
-6628103563352519193
Public Methods
public
abstract
BigInteger
getY
()
Returns the public value, y
.
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\u003eDHPublicKey\u003c/code\u003e provides an interface for Diffie-Hellman public keys in Java Cryptography Architecture (JCA).\u003c/p\u003e\n"],["\u003cp\u003eIt extends the \u003ccode\u003eDHKey\u003c/code\u003e and \u003ccode\u003ePublicKey\u003c/code\u003e interfaces for key management and public key operations.\u003c/p\u003e\n"],["\u003cp\u003eThe core functionality is to retrieve the public value (\u003ccode\u003ey\u003c/code\u003e) and key parameters using \u003ccode\u003egetY()\u003c/code\u003e and \u003ccode\u003egetParams()\u003c/code\u003e methods.\u003c/p\u003e\n"],["\u003cp\u003eIt includes \u003ccode\u003eserialVersionUID\u003c/code\u003e to ensure serialization compatibility.\u003c/p\u003e\n"]]],[],null,["public interface **DHPublicKey** implements [DHKey](../../../../reference/javax/crypto/interfaces/DHKey.html) [PublicKey](../../../../reference/java/security/PublicKey.html) \nThe interface to a Diffie-Hellman public key. \n\nSee Also\n\n- [DHKey](../../../../reference/javax/crypto/interfaces/DHKey.html)\n- [DHPrivateKey](../../../../reference/javax/crypto/interfaces/DHPrivateKey.html) \n\nConstant Summary\n\n|------|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/javax/crypto/interfaces/DHPublicKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4. |\n\nInherited Constant Summary \nFrom interface [java.security.PublicKey](../../../../reference/java/security/PublicKey.html) \n\n|------|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/PublicKey.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\nPublic Method Summary\n\n|---------------------|----------------------------------------------------------------------------------------------------------------|\n| abstract BigInteger | [getY](../../../../reference/javax/crypto/interfaces/DHPublicKey.html#getY())() Returns the public value, `y`. |\n\nInherited Method Summary \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\nConstants \n\npublic static final long\n**serialVersionUID** \nThe class fingerprint that is set to indicate serialization\ncompatibility since J2SE 1.4. \nConstant Value: -6628103563352519193\n\nPublic Methods \n\npublic abstract BigInteger\n**getY**\n() \nReturns the public value, `y`. \n\nReturns\n\n- the public value, `y`"]]