java.lang.Object
com.ibm.crypto.hdwrCCA.provider.MLDSAPublicKeySpec
- All Implemented Interfaces:
KeySpec
This class specifies a ML-DSA public key spec to be used with
MLDSAKeyFactory. This is used to make a representation of the key for
import or export.
-
Constructor Summary
ConstructorsConstructorDescriptionMLDSAPublicKeySpec
(byte[] encoded) Creates an instance of this class from the encoded raw key material.MLDSAPublicKeySpec
(byte[] encoded, MLDSAKeyParameterSpec spec) Creates an instance of this class from the encoded raw key material. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns a clone of the encoded raw key material.Returns the MLDSAKeyParameterSpec parameters.
-
Constructor Details
-
MLDSAPublicKeySpec
Creates an instance of this class from the encoded raw key material.- Parameters:
encoded
- The encoded bytes contains the raw key material of the public key.- Throws:
InvalidKeySpecException
IllegalArgumentException
-
MLDSAPublicKeySpec
public MLDSAPublicKeySpec(byte[] encoded, MLDSAKeyParameterSpec spec) throws InvalidKeySpecException, IllegalArgumentException Creates an instance of this class from the encoded raw key material.- Parameters:
encoded
- The encoded bytes contains the raw key material of the public key.spec
- indicates the key parameters associated with this key.- Throws:
InvalidKeySpecException
IllegalArgumentException
-
-
Method Details
-
getEncoded
public byte[] getEncoded()Returns a clone of the encoded raw key material.- Returns:
- A clone of the encoded raw key material.
-
getParams
Returns the MLDSAKeyParameterSpec parameters.- Returns:
- MLDSAKeyParameterSpec parameterSpec
-