Class NamedParameterSpecUtil
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.util.NamedParameterSpecUtil
Version hook producing the JDK form of a key's named parameter set, as returned by the
getParams() method keys inherit from java.security.AsymmetricKey from Java 22.
java.security.spec.NamedParameterSpec only exists from Java 11, so this copy, loaded on earlier JVMs, has nothing to offer and returns null. The jdk1.11 twin returns a NamedParameterSpec - keep the method set of the two copies identical, and put nothing else on this class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AlgorithmParameterSpecgetNamedParameterSpec(String name) Return a NamedParameterSpec for the passed in parameter set name, if the JVM has one.
-
Constructor Details
-
NamedParameterSpecUtil
public NamedParameterSpecUtil()
-
-
Method Details
-
getNamedParameterSpec
Return a NamedParameterSpec for the passed in parameter set name, if the JVM has one.- Parameters:
name- the standard name of the parameter set, for example "ML-DSA-65".- Returns:
- null, as NamedParameterSpec is not available before Java 11.
-