public class AESKeyTemplate extends SecretKeyTemplate
Description:
Secret Key Template for AES keys, it contains Secret Key Attributes plus
CK_ATTRIBUTE(PKCS11Constants.CKA_KEY_TYPE, PKCS11Constants.CKK_AES)
with keys sizes can be 16, 24, 32attributes, keyId, label, logger| Constructor and Description |
|---|
AESKeyTemplate(java.lang.String label) |
AESKeyTemplate(java.lang.String label,
byte[] value)
label and value to import AES key
|
AESKeyTemplate(java.lang.String label,
int keySize) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm() |
long |
getGenerationMechanism()
CKM_AES_KEY_GEN as mechanism
|
getAsCreationTemplate, getAsDecryptorTemplate, getAsExportableTemplate, getAsImportTemplate, getAsUnwrapperTemplate, getAsWrapperTemplate, getKeySize, isWrapperOrUnWrapperadd, containsAttribute, getAttribute, getAttributes, getAttributesAsArr, getEncoded, getFormat, getKeyId, getLabel, remove, setKeyIdpublic AESKeyTemplate(java.lang.String label,
int keySize)
public AESKeyTemplate(java.lang.String label)
public AESKeyTemplate(java.lang.String label,
byte[] value)
label - value - public java.lang.String getAlgorithm()
public long getGenerationMechanism()
getGenerationMechanism in class SecretKeyTemplateCopyright © 2025. All rights reserved.