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 certificateUnrecognized -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyType
static KeyType
fromString
(String sType) protected abstract boolean
private boolean
void
putPubKeyIntoBuffer
(PublicKey pk, Buffer<?> buf) abstract PublicKey
readPubKeyFromBuffer
(Buffer<?> buf) toString()
static KeyType
Returns 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 void
writePubKeyContentsIntoBuffer
(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 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
-
isSubType
-
getParent
-
fromString
-
toString
-