Bouncy Castle Cryptography Library 1.87

org.bouncycastle.jcajce.provider.asymmetric.util
Class NamedParameterSpecUtil

java.lang.Object
  extended byorg.bouncycastle.jcajce.provider.asymmetric.util.NamedParameterSpecUtil

public class NamedParameterSpecUtil
extends java.lang.Object

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
NamedParameterSpecUtil()
           
 
Method Summary
static java.security.spec.AlgorithmParameterSpec getNamedParameterSpec(java.lang.String name)
          Return a NamedParameterSpec for the passed in parameter set name, if the JVM has one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedParameterSpecUtil

public NamedParameterSpecUtil()
Method Detail

getNamedParameterSpec

public static java.security.spec.AlgorithmParameterSpec getNamedParameterSpec(java.lang.String name)
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.

Bouncy Castle Cryptography Library 1.87