Package net.schmizz.sshj.common
Enum Class KeyType
- All Implemented Interfaces:
Serializable,Comparable<KeyType>,Constable
Type of key e.g. rsa, dsa
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSSH identifier for DSA keysSigned dsa certificateSSH identifier for ECDSA-256 keysSSH identifier for ECDSA-384 keysSSH identifier for ECDSA-521 keysSSH identifier for RSA keysSigned rsa certificateOpenSSH FIDO/U2F security key backed by ECDSA NIST P-256OpenSSH FIDO/U2F security key backed by Ed25519Unrecognized -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyTypestatic KeyTypefromString(String sType) protected abstract booleanvoidputPubKeyIntoBuffer(PublicKey pk, Buffer<?> buf) abstract PublicKeyreadPubKeyFromBuffer(Buffer<?> buf) toString()static KeyTypeReturns the enum constant of this class with the specified name.static KeyType[]values()Returns an array containing the constants of this enum class, in the order they are declared.protected abstract voidwritePubKeyContentsIntoBuffer(PublicKey pk, Buffer<?> buf)
-
Enum Constant Details
-
RSA
SSH identifier for RSA keys -
DSA
SSH identifier for DSA keys -
ECDSA256
SSH identifier for ECDSA-256 keys -
ECDSA384
SSH identifier for ECDSA-384 keys -
ECDSA521
SSH identifier for ECDSA-521 keys -
ED25519
-
SK_ECDSA
OpenSSH FIDO/U2F security key backed by ECDSA NIST P-256 -
SK_ED25519
OpenSSH FIDO/U2F security key backed by Ed25519 -
RSA_CERT
Signed rsa certificate -
DSA_CERT
Signed dsa certificate -
ED25519_CERT
-
ECDSA256_CERT
-
ECDSA384_CERT
-
ECDSA521_CERT
-
UNKNOWN
Unrecognized
-
-
Field Details
-
sType
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
readPubKeyFromBuffer
- Throws:
GeneralSecurityException
-
writePubKeyContentsIntoBuffer
-
putPubKeyIntoBuffer
-
isMyType
-
fromKey
-
getParent
-
fromString
-
toString
-