Package org.conscrypt
Class OpenSslMlDsaPublicKey
- java.lang.Object
-
- org.conscrypt.OpenSslMlDsaPublicKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Key,java.security.PublicKey,OpenSSLKeyHolder
public class OpenSslMlDsaPublicKey extends java.lang.Object implements java.security.PublicKey, OpenSSLKeyHolder
An OpenSSL ML-DSA public key.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private MlDsaAlgorithmalgorithmprivate OpenSSLKeykeyprivate byte[]rawprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description OpenSslMlDsaPublicKey(byte[] raw, MlDsaAlgorithm algorithm)OpenSslMlDsaPublicKey(OpenSSLKey key, MlDsaAlgorithm algorithm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAlgorithm()private static MlDsaAlgorithmgetAlgorithmFromRaw(byte[] raw)byte[]getEncoded()java.lang.StringgetFormat()MlDsaAlgorithmgetMlDsaAlgorithm()OpenSSLKeygetOpenSSLKey()private static OpenSSLKeygetOpenSslKeyFromRaw(byte[] raw, MlDsaAlgorithm algorithm)(package private) byte[]getRaw()inthashCode()private static booleanisValid(byte[] raw, MlDsaAlgorithm algorithm)private voidreadObject(java.io.ObjectInputStream stream)private voidwriteObject(java.io.ObjectOutputStream stream)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
raw
private byte[] raw
-
algorithm
private transient MlDsaAlgorithm algorithm
-
key
private transient OpenSSLKey key
-
-
Constructor Detail
-
OpenSslMlDsaPublicKey
OpenSslMlDsaPublicKey(OpenSSLKey key, MlDsaAlgorithm algorithm)
-
OpenSslMlDsaPublicKey
public OpenSslMlDsaPublicKey(byte[] raw, MlDsaAlgorithm algorithm)
-
-
Method Detail
-
isValid
private static boolean isValid(byte[] raw, MlDsaAlgorithm algorithm)
-
getAlgorithmFromRaw
private static MlDsaAlgorithm getAlgorithmFromRaw(byte[] raw)
-
getOpenSslKeyFromRaw
private static OpenSSLKey getOpenSslKeyFromRaw(byte[] raw, MlDsaAlgorithm algorithm) throws OpenSSLX509CertificateFactory.ParsingException
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key
-
getMlDsaAlgorithm
public MlDsaAlgorithm getMlDsaAlgorithm()
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
getOpenSSLKey
public OpenSSLKey getOpenSSLKey()
- Specified by:
getOpenSSLKeyin interfaceOpenSSLKeyHolder
-
getRaw
byte[] getRaw()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
readObject
private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeObject
private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException- Throws:
java.io.IOException
-
-