public interface
AlgorithmParameterSpec
AlgorithmParameterSpec
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\u003eAlgorithmParameterSpec\u003c/code\u003e is a marker interface used for type safety of cryptographic parameter specifications.\u003c/p\u003e\n"],["\u003cp\u003eIt acts as a grouping mechanism for all parameter specifications, ensuring they are implemented consistently.\u003c/p\u003e\n"],["\u003cp\u003eThis interface doesn't have any methods or constants; its primary role is to enforce type safety.\u003c/p\u003e\n"],["\u003cp\u003eVarious cryptographic algorithms, such as DSA, Diffie-Hellman, and RSA, utilize specific implementations of \u003ccode\u003eAlgorithmParameterSpec\u003c/code\u003e for their parameter configurations.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should refer to the documentation of specific algorithm parameter specifications (e.g., \u003ccode\u003eDSAParameterSpec\u003c/code\u003e) for detailed information about the parameters they define.\u003c/p\u003e\n"]]],[],null,["# AlgorithmParameterSpec\n\npublic interface **AlgorithmParameterSpec** \n\n|---|---|---|\n| Known Indirect Subclasses [DHGenParameterSpec](../../../../reference/javax/crypto/spec/DHGenParameterSpec.html), [DHParameterSpec](../../../../reference/javax/crypto/spec/DHParameterSpec.html), [DSAParameterSpec](../../../../reference/java/security/spec/DSAParameterSpec.html), [ECGenParameterSpec](../../../../reference/java/security/spec/ECGenParameterSpec.html), [ECParameterSpec](../../../../reference/java/security/spec/ECParameterSpec.html), [GCMParameterSpec](../../../../reference/javax/crypto/spec/GCMParameterSpec.html), [IvParameterSpec](../../../../reference/javax/crypto/spec/IvParameterSpec.html), [MGF1ParameterSpec](../../../../reference/java/security/spec/MGF1ParameterSpec.html), [OAEPParameterSpec](../../../../reference/javax/crypto/spec/OAEPParameterSpec.html), [PBEParameterSpec](../../../../reference/javax/crypto/spec/PBEParameterSpec.html), [PSSParameterSpec](../../../../reference/java/security/spec/PSSParameterSpec.html), [RC2ParameterSpec](../../../../reference/javax/crypto/spec/RC2ParameterSpec.html), [RC5ParameterSpec](../../../../reference/javax/crypto/spec/RC5ParameterSpec.html), [RSAKeyGenParameterSpec](../../../../reference/java/security/spec/RSAKeyGenParameterSpec.html) |------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [DHGenParameterSpec](../../../../reference/javax/crypto/spec/DHGenParameterSpec.html) | This class specifies the set of parameters used for generating Diffie-Hellman (system) parameters for use in Diffie-Hellman key agreement. | | [DHParameterSpec](../../../../reference/javax/crypto/spec/DHParameterSpec.html) | This class specifies the set of parameters used with the Diffie-Hellman algorithm, as specified in PKCS #3: *Diffie-Hellman Key-Agreement Standard*. | | [DSAParameterSpec](../../../../reference/java/security/spec/DSAParameterSpec.html) | This class specifies the set of parameters used with the DSA algorithm. | | [ECGenParameterSpec](../../../../reference/java/security/spec/ECGenParameterSpec.html) | This immutable class specifies the set of parameters used for generating elliptic curve (EC) domain parameters. | | [ECParameterSpec](../../../../reference/java/security/spec/ECParameterSpec.html) | This immutable class specifies the set of domain parameters used with elliptic curve cryptography (ECC). | | [GCMParameterSpec](../../../../reference/javax/crypto/spec/GCMParameterSpec.html) | Specifies the set of parameters required by a [Cipher](../../../../reference/javax/crypto/Cipher.html) using the Galois/Counter Mode (GCM) mode. | | [IvParameterSpec](../../../../reference/javax/crypto/spec/IvParameterSpec.html) | This class specifies an *initialization vector* (IV). | | [MGF1ParameterSpec](../../../../reference/java/security/spec/MGF1ParameterSpec.html) | This class specifies the set of parameters used with mask generation function MGF1 in OAEP Padding and RSA-PSS signature scheme, as defined in the [PKCS #1 v2.1](http://www.ietf.org/rfc/rfc3447.txt) standard. | | [OAEPParameterSpec](../../../../reference/javax/crypto/spec/OAEPParameterSpec.html) | This class specifies the set of parameters used with OAEP Padding, as defined in the [PKCS #1](http://www.ietf.org/rfc/rfc3447.txt) standard. | | [PBEParameterSpec](../../../../reference/javax/crypto/spec/PBEParameterSpec.html) | This class specifies the set of parameters used with password-based encryption (PBE), as defined in the [PKCS #5](http://www.ietf.org/rfc/rfc2898.txt) standard. | | [PSSParameterSpec](../../../../reference/java/security/spec/PSSParameterSpec.html) | This class specifies a parameter spec for RSA-PSS signature scheme, as defined in the [PKCS#1 v2.1](http://www.ietf.org/rfc/rfc3447.txt) standard. | | [RC2ParameterSpec](../../../../reference/javax/crypto/spec/RC2ParameterSpec.html) | This class specifies the parameters used with the [*RC2*](http://www.ietf.org/rfc/rfc2268.txt) algorithm. | | [RC5ParameterSpec](../../../../reference/javax/crypto/spec/RC5ParameterSpec.html) | This class specifies the parameters used with the [*RC5*](http://www.ietf.org/rfc/rfc2040.txt) algorithm. | | [RSAKeyGenParameterSpec](../../../../reference/java/security/spec/RSAKeyGenParameterSpec.html) | This class specifies the set of parameters used to generate an RSA key pair. | |||\n\nA (transparent) specification of cryptographic parameters.\n\nThis interface contains no methods or constants. Its only purpose\nis to group (and provide type safety for) all parameter specifications.\nAll parameter specifications must implement this interface. \n\n##### See Also\n\n- [AlgorithmParameters](../../../../reference/java/security/AlgorithmParameters.html)\n- [DSAParameterSpec](../../../../reference/java/security/spec/DSAParameterSpec.html)"]]