public interface
DSAKey
DSAKey
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\u003eDSAKey is the standard interface for DSA public and private keys, used in the Digital Signature Algorithm as defined by NIST's FIPS-186.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the DSA-specific key parameters, which are publicly accessible and not considered secret.\u003c/p\u003e\n"],["\u003cp\u003eThis interface is extended by DSAPrivateKey and DSAPublicKey for handling private and public keys respectively.\u003c/p\u003e\n"]]],["`DSAKey` is an interface for DSA public or private keys, adhering to NIST's FIPS-186. It has two subclasses: `DSAPrivateKey` and `DSAPublicKey`. The key method `getParams()` returns the DSA-specific key parameters, which are not secret. `DSAParams` is a related interface. This interface is associated with the digital signature algorithm. `Key` and `Signature` are the other relevant information.\n"],null,["# DSAKey\n\npublic interface **DSAKey** \n\n|---|---|---|\n| Known Indirect Subclasses [DSAPrivateKey](../../../../reference/java/security/interfaces/DSAPrivateKey.html), [DSAPublicKey](../../../../reference/java/security/interfaces/DSAPublicKey.html) |------------------------------------------------------------------------------------|----------------------------------------------| | [DSAPrivateKey](../../../../reference/java/security/interfaces/DSAPrivateKey.html) | The standard interface to a DSA private key. | | [DSAPublicKey](../../../../reference/java/security/interfaces/DSAPublicKey.html) | The interface to a DSA public key. | |||\n\nThe interface to a DSA public or private key. DSA (Digital Signature\nAlgorithm) is defined in NIST's FIPS-186. \n\n##### See Also\n\n- [DSAParams](../../../../reference/java/security/interfaces/DSAParams.html)\n- [Key](../../../../reference/java/security/Key.html)\n- [Signature](../../../../reference/java/security/Signature.html) \n\n### Public Method Summary\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\nPublic Methods\n--------------\n\n#### public abstract [DSAParams](../../../../reference/java/security/interfaces/DSAParams.html)\n**getParams**\n()\n\nReturns the DSA-specific key parameters. These parameters are\nnever secret. \n\n##### Returns\n\n- the DSA-specific key parameters. \n\n##### See Also\n\n- [DSAParams](../../../../reference/java/security/interfaces/DSAParams.html)"]]