Class OpenSslMlDsaPublicKey
java.lang.Object
org.conscrypt.OpenSslMlDsaPublicKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PublicKey, OpenSSLKeyHolder
An OpenSSL ML-DSA public key.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MlDsaAlgorithmprivate OpenSSLKeyprivate byte[]private static final long -
Constructor Summary
ConstructorsConstructorDescriptionOpenSslMlDsaPublicKey(byte[] raw, MlDsaAlgorithm algorithm) OpenSslMlDsaPublicKey(OpenSSLKey key, MlDsaAlgorithm algorithm) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate static MlDsaAlgorithmgetAlgorithmFromRaw(byte[] raw) byte[]private static OpenSSLKeygetOpenSslKeyFromRaw(byte[] raw, MlDsaAlgorithm algorithm) (package private) byte[]getRaw()inthashCode()private static booleanisValid(byte[] raw, MlDsaAlgorithm algorithm) private voidreadObject(ObjectInputStream stream) private voidwriteObject(ObjectOutputStream stream) Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AsymmetricKey
getParams
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
raw
private byte[] raw -
algorithm
-
key
-
-
Constructor Details
-
OpenSslMlDsaPublicKey
OpenSslMlDsaPublicKey(OpenSSLKey key, MlDsaAlgorithm algorithm) -
OpenSslMlDsaPublicKey
-
-
Method Details
-
isValid
-
getAlgorithmFromRaw
-
getOpenSslKeyFromRaw
private static OpenSSLKey getOpenSslKeyFromRaw(byte[] raw, MlDsaAlgorithm algorithm) throws OpenSSLX509CertificateFactory.ParsingException -
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getMlDsaAlgorithm
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getOpenSSLKey
- Specified by:
getOpenSSLKeyin interfaceOpenSSLKeyHolder
-
getRaw
byte[] getRaw() -
equals
-
hashCode
-
readObject
- Throws:
IOExceptionClassNotFoundException
-
writeObject
- Throws:
IOException
-