Package org.conscrypt

Class OpenSSLX25519PublicKey

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Key, java.security.PublicKey, OpenSSLX25519Key

    public class OpenSSLX25519PublicKey
    extends java.lang.Object
    implements OpenSSLX25519Key, java.security.PublicKey
    See Also:
    Serialized Form
    • Field Detail

      • X509_PREAMBLE

        private static final byte[] X509_PREAMBLE
      • uCoordinate

        private final byte[] uCoordinate
    • Constructor Detail

      • OpenSSLX25519PublicKey

        public OpenSSLX25519PublicKey​(java.security.spec.EncodedKeySpec keySpec)
                               throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
      • OpenSSLX25519PublicKey

        public OpenSSLX25519PublicKey​(byte[] coordinateBytes)
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
        Specified by:
        getAlgorithm in interface java.security.Key
      • getFormat

        public java.lang.String getFormat()
        Specified by:
        getFormat in interface java.security.Key
      • getEncoded

        public byte[] getEncoded()
        Specified by:
        getEncoded in interface java.security.Key
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • readObject

        private void readObject​(java.io.ObjectInputStream stream)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeObject

        private void writeObject​(java.io.ObjectOutputStream stream)
                          throws java.io.IOException
        Throws:
        java.io.IOException