| Enum Constant and Description |
|---|
DSA
SSH identifier for DSA keys
|
ECDSA
SSH identifier for ECDSA keys
|
RSA
SSH identifier for RSA keys
|
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) |
abstract void |
putPubKeyIntoBuffer(java.security.PublicKey pk,
Buffer<?> buf) |
abstract java.security.PublicKey |
readPubKeyFromBuffer(java.lang.String type,
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.
|
public static final KeyType RSA
public static final KeyType DSA
public static final KeyType ECDSA
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(java.lang.String type,
Buffer<?> buf)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic abstract 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>