Package org.conscrypt
Class OpenSslMlKemPublicKey
- java.lang.Object
-
- org.conscrypt.OpenSslMlKemPublicKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Key,java.security.PublicKey
public class OpenSslMlKemPublicKey extends java.lang.Object implements java.security.PublicKeyAn ML-KEM public key.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private MlKemAlgorithmalgorithmprivate byte[]rawprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description OpenSslMlKemPublicKey(byte[] raw, MlKemAlgorithm algorithm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAlgorithm()byte[]getEncoded()java.lang.StringgetFormat()(package private) MlKemAlgorithmgetMlKemAlgorithm()(package private) byte[]getRaw()private static byte[]getX509Preamble(MlKemAlgorithm algorithm)inthashCode()private voidreadObject(java.io.ObjectInputStream in)private voidwriteObject(java.io.ObjectOutputStream out)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
raw
private final byte[] raw
-
algorithm
private final MlKemAlgorithm algorithm
-
-
Constructor Detail
-
OpenSslMlKemPublicKey
public OpenSslMlKemPublicKey(byte[] raw, MlKemAlgorithm algorithm)
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key
-
getMlKemAlgorithm
MlKemAlgorithm getMlKemAlgorithm()
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
getX509Preamble
private static byte[] getX509Preamble(MlKemAlgorithm algorithm)
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
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 in)
-
writeObject
private void writeObject(java.io.ObjectOutputStream out)
-
-