Package net.schmizz.sshj.common
Enum KeyType
- All Implemented Interfaces:
Serializable,Comparable<KeyType>,java.lang.constant.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 certificateUnrecognized -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyTypestatic KeyTypefromString(String sType) protected abstract booleanprivate booleanvoidputPubKeyIntoBuffer(PublicKey pk, Buffer<?> buf) abstract PublicKeyreadPubKeyFromBuffer(Buffer<?> buf) toString()static KeyTypeReturns the enum constant of this type with the specified name.static KeyType[]values()Returns an array containing the constants of this enum type, 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
-
RSA_CERT
Signed rsa certificate -
DSA_CERT
Signed dsa certificate -
ED25519_CERT
-
ECDSA256_CERT
-
ECDSA384_CERT
-
ECDSA521_CERT
-
UNKNOWN
Unrecognized
-
-
Field Details
-
sType
-
-
Constructor Details
-
KeyType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
readPubKeyFromBuffer
- Throws:
GeneralSecurityException
-
writePubKeyContentsIntoBuffer
-
putPubKeyIntoBuffer
-
isMyType
-
fromKey
-
isSubType
-
getParent
-
fromString
-
toString
-