| Enum Constant and Description |
|---|
DSA
SSH identifier for DSA keys
|
DSA_CERT
Signed dsa certificate
|
ECDSA256
SSH identifier for ECDSA-256 keys
|
ECDSA384
SSH identifier for ECDSA-384 keys
|
ECDSA521
SSH identifier for ECDSA-521 keys
|
ED25519 |
RSA
SSH identifier for RSA keys
|
RSA_CERT
Signed rsa certificate
|
UNKNOWN
Unrecognized
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
sType |
| Modifier and Type | Method and Description |
|---|---|
static KeyType |
fromKey(java.security.Key key) |
static KeyType |
fromString(java.lang.String sType) |
protected abstract boolean |
isMyType(java.security.Key key) |
void |
putPubKeyIntoBuffer(java.security.PublicKey pk,
Buffer<?> buf) |
abstract java.security.PublicKey |
readPubKeyFromBuffer(Buffer<?> buf) |
java.lang.String |
toString() |
static KeyType |
valueOf(java.lang.String name)
Returns 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 void |
writePubKeyContentsIntoBuffer(java.security.PublicKey pk,
Buffer<?> buf) |
public static final KeyType RSA
public static final KeyType DSA
public static final KeyType ECDSA256
public static final KeyType ECDSA384
public static final KeyType ECDSA521
public static final KeyType ED25519
public static final KeyType RSA_CERT
public static final KeyType DSA_CERT
public static final KeyType UNKNOWN
public static KeyType[] values()
for (KeyType c : KeyType.values()) System.out.println(c);
public static KeyType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract java.security.PublicKey readPubKeyFromBuffer(Buffer<?> buf) throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionprotected abstract void writePubKeyContentsIntoBuffer(java.security.PublicKey pk,
Buffer<?> buf)
public void putPubKeyIntoBuffer(java.security.PublicKey pk,
Buffer<?> buf)
protected abstract boolean isMyType(java.security.Key key)
public static KeyType fromKey(java.security.Key key)
public static KeyType fromString(java.lang.String sType)
public java.lang.String toString()
toString in class java.lang.Enum<KeyType>