public class MLDSAPublicKey extends PublicKey
Key.KeyType, Key.VendorDefinedKeyBuilderObject.ObjectClass, Object.VendorDefinedObjectBuilder| Modifier and Type | Field and Description |
|---|---|
protected ParameterSetAttribute |
parameterSet_
ML-DSA parameter set
|
protected PublicKeyInfoAttribute |
publicKeyInfo_
Public Key DER encoded
|
protected ValueAttribute |
value_
Public value as defined in [FIPS 204]
|
encrypt_, subject_, trusted_, verify_, verifyRecover_, wrap_, wrapTemplate_allowedMechanisms_, derive_, endDate_, id_, keyGenMechanism_, keyType_, keyTypeNames_, local_, startDate_, vendorKeyBuilder_label_, modifiable_, private_, token_attributeTable_, objectClass_, objectClassNames_, objectHandle_, vendorObjectBuilder_| Constructor and Description |
|---|
MLDSAPublicKey()
Create an ML-DSA public key object.
|
MLDSAPublicKey(Session session,
long objectHandle)
Create an ML-DSA public key object for the given session and object handle.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
allocateAttributes()
Allocates the attribute objects for this class and adds them to the attribute table.
|
java.lang.Object |
clone()
Create a (deep) clone of this object.
|
boolean |
equals(java.lang.Object object)
Compares all member variables of this object with the other object.
|
static Object |
getInstance(Session session,
long objectHandle) |
PublicKeyInfoAttribute |
getKeyInfo() |
ParameterSetAttribute |
getParameterSet()
Get the ParameterSet attribute.
|
PublicKeyInfoAttribute |
getPublicKeyInfo()
Get the PublicKeyInfo attribute.
|
ValueAttribute |
getValue()
Get the Value attribute.
|
protected static void |
putAttributesInTable(MLDSAPublicKey object)
Put all attributes of the given object into the attributes table of this object.
|
long |
readParameterSet()
Read the value of the ParameterSet attribute.
|
byte[] |
readPublicKeyInfo()
Read the value of the PublicKeyInfo attribute.
|
byte[] |
readValue()
Read the value of the Value attribute.
|
MLDSAPublicKey |
setParameterSet(CK_ML_DSA_PARAMETER_SET_TYPE parameterSet)
Set the value of the ParameterSet attribute.
|
MLDSAPublicKey |
setParameterSet(long value)
Set the value of the ParameterSet attribute.
|
MLDSAPublicKey |
setPublicKeyInfo(byte[] value)
Set the PublicKeyInfo attribute.
|
MLDSAPublicKey |
setValue(byte[] value)
Set the value of the Value attribute.
|
java.lang.String |
toString()
This method returns a string representation of the current object.
|
getEncrypt, getSubject, getTrusted, getUnknownPublicKey, getVerify, getVerifyRecover, getWrap, getWrapTemplate, isEncrypt, isTrusted, isVerify, isVerifyRecover, isWrap, putAttributesInTable, readEncrypt, readSubject, readTrusted, readVerify, readVerifyRecover, readWrap, readWrapTemplate, setEncrypt, setSubject, setTrusted, setVerify, setVerifyRecover, setWrap, setWrapTemplategetAllowedMechanisms, getDerive, getEndDate, getId, getKeyGenMechanism, getKeyType, getKeyTypeName, getLocal, getStartDate, getVendorDefinedKeyBuilder, hashCode, isDerivable, isDerive, isLocal, putAttributesInTable, readAllowedMechanisms, readDerive, readEndDate, readId, readKeyGenMechanism, readKeyType, readLocal, readStartDate, setAllowedMechanisms, setDerive, setEndDate, setId, setKeyGenMechanism, setKeyType, setLocal, setStartDate, setVendorDefinedKeyBuildergetLabel, getModifiable, getPrivate, getToken, isModifiable, isPrivate, isToken, putAttributesInTable, readLabel, readModifiable, readPrivate, readToken, setLabel, setModifiable, setPrivate, setTokencheckAttributesState, checkAttributeState, filterExcludedAttributes, filterExcludedAttributes, getAttribute, getAttributeTable, getAttributeValue, getAttributeValues, getExcludedAttributes, getObjectClass, getObjectClassName, getObjectHandle, getSetAttributes, getSetAttributes, getUnknownObject, getVendorDefinedObjectBuilder, hasExcluded, putAttribute, putAttributesInTable, readAttributes, removeAttribute, setObjectHandle, setVendorDefinedObjectBuilder, toStringprotected ParameterSetAttribute parameterSet_
protected ValueAttribute value_
PKCS11Constants.CKA_VALUEprotected PublicKeyInfoAttribute publicKeyInfo_
PKCS11Constants.CKA_PUBLIC_KEY_INFOpublic MLDSAPublicKey()
public MLDSAPublicKey(Session session, long objectHandle) throws TokenException
session - the session to use.objectHandle - the object handle of the ML-DSA public key object.TokenException - if getting the attributes of the ML-DSA public key object fails.public static Object getInstance(Session session, long objectHandle) throws TokenException
TokenExceptionpublic MLDSAPublicKey setParameterSet(long value)
value - the value of the ParameterSet attribute.PKCS11Constants.CKA_PARAMETER_SET,
PKCS11Constants.CKP_ML_DSA_44,
PKCS11Constants.CKP_ML_DSA_65,
PKCS11Constants.CKP_ML_DSA_87,
CK_ML_DSA_PARAMETER_SET_TYPEpublic MLDSAPublicKey setParameterSet(CK_ML_DSA_PARAMETER_SET_TYPE parameterSet)
parameterSet - the parameter set with the chosen typePKCS11Constants.CKA_PARAMETER_SET,
PKCS11Constants.CKP_ML_DSA_44,
PKCS11Constants.CKP_ML_DSA_65,
PKCS11Constants.CKP_ML_DSA_87,
CK_ML_DSA_PARAMETER_SET_TYPEpublic ParameterSetAttribute getParameterSet()
PKCS11Constants.CKA_PARAMETER_SET,
PKCS11Constants.CKP_ML_DSA_44,
PKCS11Constants.CKP_ML_DSA_65,
PKCS11Constants.CKP_ML_DSA_87,
CK_ML_DSA_PARAMETER_SET_TYPEpublic long readParameterSet()
PKCS11Constants.CKA_PARAMETER_SET,
PKCS11Constants.CKP_ML_DSA_44,
PKCS11Constants.CKP_ML_DSA_65,
PKCS11Constants.CKP_ML_DSA_87,
CK_ML_DSA_PARAMETER_SET_TYPEpublic MLDSAPublicKey setValue(byte[] value)
value - the value of the Value attribute.PKCS11Constants.CKA_VALUEpublic ValueAttribute getValue()
PKCS11Constants.CKA_VALUEpublic byte[] readValue()
PKCS11Constants.CKA_VALUEpublic MLDSAPublicKey setPublicKeyInfo(byte[] value)
value - the PublicKeyInfo attribute.PKCS11Constants.CKA_PUBLIC_KEY_INFOpublic PublicKeyInfoAttribute getPublicKeyInfo()
PKCS11Constants.CKA_PUBLIC_KEY_INFOpublic PublicKeyInfoAttribute getKeyInfo()
public byte[] readPublicKeyInfo()
PKCS11Constants.CKA_PUBLIC_KEY_INFOprotected static void putAttributesInTable(MLDSAPublicKey object)
object - The object to work with.protected void allocateAttributes()
PublicKeyallocateAttributes in class PublicKeypublic java.lang.Object clone()
PublicKeypublic boolean equals(java.lang.Object object)
PublicKeypublic java.lang.String toString()
PublicKey