public class MlDsaKeyFactory extends PKCS11KeyFactory
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
KEY_FACTORY_ALGORITHM_NAME |
pkcs11KeySpec_, pkcs11OperationInitialized_, PKCS8_VERSION, session_, softwareDelegate_, tokenManager_| Constructor and Description |
|---|
MlDsaKeyFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getAlgorithmName()
Return the JCA standard name of this key factory algorithm.
|
protected java.lang.String |
getSoftwareDelegateAlgorithm()
Return the name of the software algorithm to use, if this object must use a software delegation
object.
|
protected java.security.PrivateKey |
pkcs11GeneratePrivate(java.security.spec.KeySpec keySpec)
Generates a private key object from the provided key specification (key material).
|
protected java.security.PublicKey |
pkcs11GeneratePublic(java.security.spec.KeySpec pkcs11KeySpec)
Generates a public key object from the provided key specification (key material).
|
protected java.security.spec.KeySpec |
pkcs11GetKeySpec(java.security.Key key,
java.lang.Class keySpecClass)
Returns a specification (key material) of the given key object.
|
createKey, engineGeneratePrivate, engineGeneratePublic, engineGetKeySpec, engineTranslateKey, finalize, finalizePkcs11Operation, initializePkcs11Operation, initializeSession, initializeSoftwareDelegate, isSessionAppropriate, isSupportedBy, pkcs11TranslateKeyprotected static java.lang.String KEY_FACTORY_ALGORITHM_NAME
protected java.lang.String getSoftwareDelegateAlgorithm()
PKCS11KeyFactorygetSoftwareDelegateAlgorithm in class PKCS11KeyFactoryprotected java.lang.String getAlgorithmName()
PKCS11KeyFactorygetAlgorithmName in class PKCS11KeyFactoryprotected java.security.PublicKey pkcs11GeneratePublic(java.security.spec.KeySpec pkcs11KeySpec)
throws java.security.spec.InvalidKeySpecException
PKCS11KeyFactorypkcs11GeneratePublic in class PKCS11KeyFactorypkcs11KeySpec - the specification (key material) of the public key.java.security.spec.InvalidKeySpecException - if the given key specification is inappropriate for this key factory to produce a
public key.protected java.security.PrivateKey pkcs11GeneratePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
PKCS11KeyFactorypkcs11GeneratePrivate in class PKCS11KeyFactorykeySpec - the specification (key material) of the private key.java.security.spec.InvalidKeySpecException - if the given key specification is inappropriate for this key factory to produce a
private key.protected java.security.spec.KeySpec pkcs11GetKeySpec(java.security.Key key,
java.lang.Class keySpecClass)
throws java.security.spec.InvalidKeySpecException
PKCS11KeyFactorykeySpec identifies
the specification class in which the key material should be returned. It could, for example, be
DSAPublicKeySpec.class, to indicate that the key material should be returned in an
instance of the DSAPublicKeySpec class.pkcs11GetKeySpec in class PKCS11KeyFactorykey - The key.keySpecClass - The specification class in which the key material should be returned.java.security.spec.InvalidKeySpecException - if the requested key specification is inappropriate for the given key, or the
given key cannot be dealt with (e.g., the given key has an unrecognized format).IAIK PKCS#11 Provider 1.10.0
(c) 2002 IAIK, (c) 2003, 2026 SIC