Class DilithiumPublicKeySpec

  • All Implemented Interfaces:
    java.security.spec.KeySpec

    public class DilithiumPublicKeySpec
    extends java.lang.Object
    implements java.security.spec.KeySpec
    This class specifies a Dilithium public key spec to be used with DilithiumKeyFactory. This is used to make a representation of the key for import or export.
    • Constructor Summary

      Constructors 
      Constructor Description
      DilithiumPublicKeySpec​(byte[] encoded)
      Creates an instance of this class from the encoded raw key material.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getEncoded()
      Returns a clone of the encoded raw key material.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DilithiumPublicKeySpec

        public DilithiumPublicKeySpec​(byte[] encoded)
                               throws java.security.spec.InvalidKeySpecException
        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:
        java.security.spec.InvalidKeySpecException
    • Method Detail

      • getEncoded

        public byte[] getEncoded()
        Returns a clone of the encoded raw key material.
        Returns:
        A clone of the encoded raw key material.