DSAPrivateKey
Stay organized with collections
Save and categorize content based on your preferences.
The standard interface to a DSA private key. DSA (Digital Signature
Algorithm) is defined in NIST's FIPS-186.
Constant Summary
long |
serialVersionUID |
The class fingerprint that is set to indicate
serialization compatibility with a previous
version of the class. |
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 value of the private key, 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 with a previous
version of the class.
Constant Value:
7776497482533790279
Public Methods
public
abstract
BigInteger
getX
()
Returns the value of the private key, x
.
Returns
- the value of the private key,
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\u003eDSAPrivateKey\u003c/code\u003e is the standard interface for a DSA private key, used in the Digital Signature Algorithm (DSA) as defined in NIST's FIPS-186.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the private key value (\u003ccode\u003ex\u003c/code\u003e) and inherits methods for retrieving key parameters, algorithm name, encoding format, and serialization information.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDSAPrivateKey\u003c/code\u003e extends the \u003ccode\u003eDSAKey\u003c/code\u003e, \u003ccode\u003ePrivateKey\u003c/code\u003e, and \u003ccode\u003eKey\u003c/code\u003e interfaces, inheriting functionalities related to DSA keys, private keys, and general key management.\u003c/p\u003e\n"],["\u003cp\u003eThe interface includes a method to retrieve the private key value (\u003ccode\u003egetX()\u003c/code\u003e) and inherits methods for accessing DSA parameters, key algorithm, encoding, and destruction functionalities.\u003c/p\u003e\n"]]],["The `DSAPrivateKey` interface represents a DSA private key, essential for the Digital Signature Algorithm. It inherits methods from `DSAKey` and `PrivateKey`. Key actions include retrieving the private key's value (`x`) via `getX()`. It also allows access to DSA-specific key parameters using `getParams()`. The `getAlgorithm()`, `getEncoded()`, and `getFormat()` methods handle key encoding and algorithm information. Lastly, it facilitates object destruction through `destroy()` and `isDestroyed()`.\n"],null,["public interface **DSAPrivateKey** implements [DSAKey](../../../../reference/java/security/interfaces/DSAKey.html) [PrivateKey](../../../../reference/java/security/PrivateKey.html) \nThe standard interface to a DSA private key. DSA (Digital Signature\nAlgorithm) is defined in NIST's FIPS-186. \n\nSee Also\n\n- [Key](../../../../reference/java/security/Key.html)\n- [Signature](../../../../reference/java/security/Signature.html)\n- [DSAKey](../../../../reference/java/security/interfaces/DSAKey.html)\n- [DSAPublicKey](../../../../reference/java/security/interfaces/DSAPublicKey.html) \n\nConstant Summary\n\n|------|--------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/interfaces/DSAPrivateKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |\n\nInherited Constant Summary \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\nPublic Method Summary\n\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| abstract BigInteger | [getX](../../../../reference/java/security/interfaces/DSAPrivateKey.html#getX())() Returns the value of the private key, `x`. |\n\nInherited Method Summary \nFrom interface [java.security.interfaces.DSAKey](../../../../reference/java/security/interfaces/DSAKey.html) \n\n|-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| abstract [DSAParams](../../../../reference/java/security/interfaces/DSAParams.html) | [getParams](../../../../reference/java/security/interfaces/DSAKey.html#getParams())() Returns the DSA-specific 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\npublic static final long\n**serialVersionUID** \nThe class fingerprint that is set to indicate\nserialization compatibility with a previous\nversion of the class. \nConstant Value: 7776497482533790279\n\nPublic Methods \n\npublic abstract BigInteger\n**getX**\n() \nReturns the value of the private key, `x`. \n\nReturns\n\n- the value of the private key, `x`."]]