Stay organized with collections
Save and categorize content based on your preferences.
NamedParameterSpec
open class NamedParameterSpec : AlgorithmParameterSpec
Known Direct Subclasses
ECGenParameterSpec |
This immutable class specifies the set of parameters used for generating elliptic curve (EC) domain parameters.
|
|
This class is used to specify any algorithm parameters that are determined by a standard name. This class also holds constants for standard parameter set names. The names of these constants exactly match the corresponding parameter set name. For example, NamedParameterSpec.X25519 represents the parameter set identified by the string "X25519". These strings are defined in the Java Security Standard Algorithm Names Specification.
Summary
Public constructors |
Creates a parameter specification using a standard (or predefined) name stdName .
|
Public methods |
open String |
Returns the standard name that determines the algorithm parameters.
|
Public constructors
NamedParameterSpec
NamedParameterSpec(stdName: String)
Creates a parameter specification using a standard (or predefined) name stdName
. For the list of supported names, please consult the documentation of the provider whose implementation will be used.
Exceptions |
java.lang.NullPointerException |
if stdName is null. |
Public methods
getName
open fun getName(): String
Returns the standard name that determines the algorithm parameters.
Return |
String |
the standard name. |
Properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-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 2025-02-10 UTC."],[],[],null,["# NamedParameterSpec\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nNamedParameterSpec\n==================\n\n```\nopen class NamedParameterSpec : AlgorithmParameterSpec\n```\n\n|---|--------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.spec.NamedParameterSpec](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ECGenParameterSpec](/reference/kotlin/java/security/spec/ECGenParameterSpec) |-------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------| | [ECGenParameterSpec](/reference/kotlin/java/security/spec/ECGenParameterSpec) | This immutable class specifies the set of parameters used for generating elliptic curve (EC) domain parameters. | |\n\nThis class is used to specify any algorithm parameters that are determined by a standard name. This class also holds constants for standard parameter set names. The names of these constants exactly match the corresponding parameter set name. For example, NamedParameterSpec.X25519 represents the parameter set identified by the string \"X25519\". These strings are defined in the [Java Security Standard Algorithm Names Specification](https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#parameterspec-names).\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [NamedParameterSpec](#NamedParameterSpec(kotlin.String))`(`stdName:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Creates a parameter specification using a standard (or predefined) name `stdName`. |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getName](#getName())`()` Returns the standard name that determines the algorithm parameters. |\n\n| Properties ||\n|---------------------------------|----------------------------------------------------------------------------------|\n| static [NamedParameterSpec](#)! | [ED25519](#ED25519:java.security.spec.NamedParameterSpec) The Ed25519 parameters |\n| static [NamedParameterSpec](#)! | [ED448](#ED448:java.security.spec.NamedParameterSpec) The Ed448 parameters |\n| static [NamedParameterSpec](#)! | [X25519](#X25519:java.security.spec.NamedParameterSpec) The X25519 parameters |\n| static [NamedParameterSpec](#)! | [X448](#X448:java.security.spec.NamedParameterSpec) The X448 parameters |\n\nPublic constructors\n-------------------\n\n### NamedParameterSpec\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nNamedParameterSpec(stdName: String)\n```\n\nCreates a parameter specification using a standard (or predefined) name `stdName`. For the list of supported names, please consult the documentation of the provider whose implementation will be used.\n\n| Parameters ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `stdName` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): the standard name of the algorithm parameters. See the ParameterSpec Names section in the [Java Security Standard Algorithm Names Specification](https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#parameterspec-names) for information about standard names. |\n\n| Exceptions ||\n|----------------------------------|-----------------------|\n| `java.lang.NullPointerException` | if `stdName` is null. |\n\nPublic methods\n--------------\n\n### getName\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getName(): String\n```\n\nReturns the standard name that determines the algorithm parameters.\n\n| Return ||\n|----------------------------------------------------------------------------------|--------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | the standard name. |\n\nProperties\n----------\n\n### ED25519\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val ED25519: NamedParameterSpec!\n```\n\nThe Ed25519 parameters \n\n### ED448\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val ED448: NamedParameterSpec!\n```\n\nThe Ed448 parameters \n\n### X25519\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val X25519: NamedParameterSpec!\n```\n\nThe X25519 parameters \n\n### X448\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val X448: NamedParameterSpec!\n```\n\nThe X448 parameters"]]