@Deprecated public class HMACSecretKey extends SecretKey
HMACKeyTemplate
Constructor and Description |
---|
HMACSecretKey(java.lang.String aLabel,
byte[] aValue)
Deprecated.
Used for importing hmac key to token.
|
HMACSecretKey(java.lang.String aLabel,
byte[] aValue,
java.lang.String aDigestAlg)
Deprecated.
|
HMACSecretKey(java.lang.String aLabel,
int aKeySize)
Deprecated.
Used for generating hmac keys in token.
|
HMACSecretKey(java.lang.String aLabel,
int aKeySize,
java.lang.String aDigestAlg)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> |
getCreationTemplate()
Deprecated.
getCreationTemplate returns template for key generation in token
|
java.lang.String |
getDigestAlgorithm()
Deprecated.
|
long |
getGenerationMechanism()
Deprecated.
getGenerationMechanism returns pkcs11 constant value for generic secret key generation.
|
java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> |
getImportTemplate()
Deprecated.
getImportTemplate return template for importing key to token.
|
long |
getKeyType()
Deprecated.
getKeyType returns pkcs11 constant value for generic secret key type.
|
void |
setGenerationMechanism(long aMechanism)
Deprecated.
|
void |
setKeyType(long aKeyType)
Deprecated.
|
getKeySize, getLabel, getValue
public HMACSecretKey(java.lang.String aLabel, int aKeySize)
aLabel
- label to be given to the generated keyaKeySize
- key lengthpublic HMACSecretKey(java.lang.String aLabel, int aKeySize, java.lang.String aDigestAlg)
aLabel
- label to be given to the generated keyaKeySize
- key lengthaDigestAlg
- digest algorithm for macingpublic HMACSecretKey(java.lang.String aLabel, byte[] aValue)
aLabel
- label to be given to the imported key.aValue
- key valuepublic HMACSecretKey(java.lang.String aLabel, byte[] aValue, java.lang.String aDigestAlg)
aLabel
- label to be given to the generated keyaValue
- key valueaDigestAlg
- digest algorithm for macingpublic long getGenerationMechanism()
getGenerationMechanism
in class SecretKey
public long getKeyType()
getKeyType
in class SecretKey
public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getCreationTemplate()
getCreationTemplate
in class SecretKey
SecretKeyTemplate
public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getImportTemplate()
SecretKey
getImportTemplate
in class SecretKey
SecretKeyTemplate
public java.lang.String getDigestAlgorithm()
public void setGenerationMechanism(long aMechanism)
public void setKeyType(long aKeyType)
Copyright © 2025. All rights reserved.