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, 32
attributes, 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, isWrapperOrUnWrapper
add, containsAttribute, getAttribute, getAttributes, getAttributesAsArr, getEncoded, getFormat, getKeyId, getLabel, remove, setKeyId
public 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 SecretKeyTemplate
Copyright © 2025. All rights reserved.