Package org.conscrypt

Class OpenSslXwingPrivateKey

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Key, java.security.PrivateKey, javax.security.auth.Destroyable

    public class OpenSslXwingPrivateKey
    extends java.lang.Object
    implements java.security.PrivateKey
    An X-Wing private key.
    See Also:
    Serialized Form
    • Field Detail

      • pkcs8Preamble

        private static final byte[] pkcs8Preamble
      • raw

        private byte[] raw
    • Constructor Detail

      • OpenSslXwingPrivateKey

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

        public OpenSslXwingPrivateKey​(byte[] raw)
    • 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
      • getRaw

        byte[] getRaw()
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.security.auth.Destroyable
      • isDestroyed

        public boolean isDestroyed()
        Specified by:
        isDestroyed in interface javax.security.auth.Destroyable
      • 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 in)
      • writeObject

        private void writeObject​(java.io.ObjectOutputStream out)