Class UnsupportedSshPublicKey

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

    public class UnsupportedSshPublicKey
    extends java.lang.Object
    implements SshPublicKey
    A representation of an unsupported SSH public key -- just a key type and the raw key data.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] keyData  
      private java.lang.String keyType  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      UnsupportedSshPublicKey​(java.lang.String keyType, byte[] keyData)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAlgorithm()  
      byte[] getEncoded()  
      java.lang.String getFormat()  
      byte[] getKeyData()
      Retrieves the raw key bytes (serialized form).
      java.lang.String getKeyType()
      Retrieves the SSH key type.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • keyType

        private final java.lang.String keyType
      • keyData

        private final byte[] keyData
    • Constructor Detail

      • UnsupportedSshPublicKey

        public UnsupportedSshPublicKey​(java.lang.String keyType,
                                       byte[] keyData)
    • 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
      • getKeyType

        public java.lang.String getKeyType()
        Description copied from interface: SshPublicKey
        Retrieves the SSH key type.
        Specified by:
        getKeyType in interface SshPublicKey
        Returns:
        the SSH key type, never null.
      • getKeyData

        public byte[] getKeyData()
        Retrieves the raw key bytes (serialized form).
        Returns:
        the key bytes
      • 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