Class UnsupportedSshPublicKey
- java.lang.Object
-
- org.apache.sshd.common.config.keys.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[]keyDataprivate java.lang.StringkeyTypeprivate static longserialVersionUID
-
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 booleanequals(java.lang.Object obj)java.lang.StringgetAlgorithm()byte[]getEncoded()java.lang.StringgetFormat()byte[]getKeyData()Retrieves the raw key bytes (serialized form).java.lang.StringgetKeyType()Retrieves the SSH key type.inthashCode()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
keyType
private final java.lang.String keyType
-
keyData
private final byte[] keyData
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
getKeyType
public java.lang.String getKeyType()
Description copied from interface:SshPublicKeyRetrieves the SSH key type.- Specified by:
getKeyTypein interfaceSshPublicKey- 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-