Class UnsupportedSshPublicKey

java.lang.Object
org.apache.sshd.common.config.keys.UnsupportedSshPublicKey
All Implemented Interfaces:
Serializable, Key, PublicKey, SshPublicKey

public class UnsupportedSshPublicKey extends Object implements SshPublicKey
A representation of an unsupported SSH public key -- just a key type and the raw key data.
Author:
Apache MINA SSHD Project
See Also:
  • Constructor Details

    • UnsupportedSshPublicKey

      public UnsupportedSshPublicKey(String keyType, byte[] keyData)
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Specified by:
      getAlgorithm in interface Key
    • getFormat

      public String getFormat()
      Specified by:
      getFormat in interface Key
    • getEncoded

      public byte[] getEncoded()
      Specified by:
      getEncoded in interface Key
    • getKeyType

      public 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 Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object