public class AesKeyFactory extends SecretKeyFactory
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ALGORITHM_NAME
The name of the key algorithm.
|
pkcs11KeySpec_, pkcs11OperationInitialized_, session_, softwareDelegate_, tokenManager_
Constructor and Description |
---|
AesKeyFactory()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected iaik.pkcs.pkcs11.objects.Object |
createKeyCreationTemplate(java.security.spec.KeySpec keySpec)
Create the key template to use as input for the object creation.
|
protected java.lang.String |
getAlgorithmName()
Get the (default) algorithm name of this factory.
|
protected boolean |
isAlgorithmAccepted(java.lang.String algorithmName)
Check, if this factory can handle keys of the algorithm given by its name.
|
extractKeyMaterial, getSoftwareDelegateAlgorithm, isFormatAccepted, pkcs11GenerateSecret, pkcs11GetKeySpec, validateKeySpec
createKey, engineGenerateSecret, engineGetKeySpec, engineTranslateKey, finalize, finalizePkcs11Operation, initializePkcs11Operation, initializeSession, initializeSoftwareDelegate, isSessionAppropriate, isSupportedBy, pkcs11TranslateKey
protected static final java.lang.String ALGORITHM_NAME
protected iaik.pkcs.pkcs11.objects.Object createKeyCreationTemplate(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
createKeyCreationTemplate
in class SecretKeyFactory
keySpec
- The key spec providing algorithm specific key attributes.java.security.spec.InvalidKeySpecException
- If the given key material is inapropriate for this factory.protected java.lang.String getAlgorithmName()
getAlgorithmName
in class PKCS11SecretKeyFactory
protected boolean isAlgorithmAccepted(java.lang.String algorithmName)
isAlgorithmAccepted
in class SecretKeyFactory
algorithmName
- The name of the key algorithm.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