public abstract class PKCS11KeyDerivation extends PKCS11KeyGenerator
| Modifier and Type | Field and Description |
|---|---|
protected iaik.pkcs.pkcs11.Mechanism |
keyDerivationMechanism_
The key derivation mechanism.
|
initialized_, keyGenerationSpec_, pkcs11OperationInitialized_, session_, tokenManager_, usedMechanismInfos_, usedMechanisms_| Constructor and Description |
|---|
PKCS11KeyDerivation()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.crypto.SecretKey |
engineGenerateKey()
Actually generates a secret key from this KeyGenerator object.
|
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initializes this key derivator with given algorithm parameters and random seed.
|
protected void |
engineInit(int strength,
java.security.SecureRandom random)
Initializes this key generator for the given strength with the given random seed
|
protected void |
engineInit(java.security.SecureRandom random)
Initializes the key generator with the given random seed.
|
protected iaik.pkcs.pkcs11.parameters.Parameters |
getParameters()
Gets the parameters that this key generator needs.
|
protected iaik.pkcs.pkcs11.MechanismInfo[][] |
getUsedMechanismFeatures()
Returns an two-dimensional array of MechanismInfos that this engine class uses.
|
finalize, finalizePkcs11Operation, getAlgorithmName, getMechanism, getUsedMechanisms, initializePkcs11Operation, initializeSession, isSupportedByprotected iaik.pkcs.pkcs11.Mechanism keyDerivationMechanism_
protected iaik.pkcs.pkcs11.MechanismInfo[][] getUsedMechanismFeatures()
getUsedMechanisms(). The array at this index is the list of used feature
combinations used by this engine. The current token must at least support one mechanism and one
of the feature combinations (expressed as a MechanismInfo) of the same machanism.getUsedMechanismFeatures in class PKCS11KeyGeneratorgetUsedMechanisms(). The token must at
least supprot one of these features.protected javax.crypto.SecretKey engineGenerateKey()
engineGenerateKey in class PKCS11KeyGeneratorKeyGeneratorSpi.engineGenerateKey()protected void engineInit(java.security.SecureRandom random)
engineInit in class PKCS11KeyGeneratorrandom - the random seedKeyGeneratorSpi.engineInit(SecureRandom)protected void engineInit(int strength,
java.security.SecureRandom random)
engineInit in class PKCS11KeyGeneratorstrength - the strength of the key to be createdrandom - the random seedprotected void engineInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
throws java.security.InvalidAlgorithmParameterException
engineInit in class PKCS11KeyGeneratorparams - The algorithm parameters, which must be an instance of PKCS11KeyDerivationSpec and
must not be null.random - This implementation ignores this parameter.java.security.InvalidAlgorithmParameterException - if the given algorithm parameters do not match to this KeyGeneratorKeyGeneratorSpi.engineInit(AlgorithmParameterSpec, SecureRandom)protected iaik.pkcs.pkcs11.parameters.Parameters getParameters()
null.IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4