Package org.conscrypt

Class X509PublicKey

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

    final class X509PublicKey
    extends java.lang.Object
    implements java.security.PublicKey
    A simple but useless key class that holds X.509 public key information when the appropriate KeyFactory for the key algorithm is not available.
    • Constructor Summary

      Constructors 
      Constructor Description
      X509PublicKey​(java.lang.String algorithm, byte[] encoded)  
    • Field Detail

      • algorithm

        private final java.lang.String algorithm
      • encoded

        private final byte[] encoded
    • Constructor Detail

      • X509PublicKey

        X509PublicKey​(java.lang.String algorithm,
                      byte[] encoded)
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object