@Deprecated public class AESSecretKey extends SecretKey
AESKeyTemplate
Constructor and Description |
---|
AESSecretKey(java.lang.String aLabel,
byte[] aValue)
Deprecated.
Used for importing AES key to the token.
|
AESSecretKey(java.lang.String aLabel,
int aKeySize)
Deprecated.
Used for creating AES key in token.
|
Modifier and Type | Method and Description |
---|---|
long |
getGenerationMechanism()
Deprecated.
getGenerationMechanism returns pkcs11 constant value for AES key generation.
|
long |
getKeyType()
Deprecated.
getKeyType returns pkcs11 constant value for AES key type.
|
getCreationTemplate, getImportTemplate, getKeySize, getLabel, getValue
public AESSecretKey(java.lang.String aLabel, int aKeySize) throws SmartCardException
aLabel
- label to be given to the generated keyaKeySize
- length of the key in bytesSmartCardException
- If key length is not 16,24 or 32.public AESSecretKey(java.lang.String aLabel, byte[] aValue) throws SmartCardException
aLabel
- label to be given to the imported keyaValue
- key valueSmartCardException
- If given value's length is not 16,24 or 32.public long getGenerationMechanism()
getGenerationMechanism
in class SecretKey
public long getKeyType()
getKeyType
in class SecretKey
Copyright © 2025. All rights reserved.