|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<KeyType>
net.schmizz.sshj.common.KeyType
public enum KeyType
Type of key e.g. rsa, dsa
Enum Constant Summary | |
---|---|
DSA
SSH identifier for DSA keys |
|
RSA
SSH identifier for RSA keys |
|
UNKNOWN
Unrecognized |
Field Summary | |
---|---|
protected String |
sType
|
Method Summary | |
---|---|
static KeyType |
fromKey(Key key)
|
static KeyType |
fromString(String sType)
|
protected abstract boolean |
isMyType(Key key)
|
abstract void |
putPubKeyIntoBuffer(PublicKey pk,
Buffer<?> buf)
|
abstract PublicKey |
readPubKeyFromBuffer(String type,
Buffer<?> buf)
|
String |
toString()
|
static KeyType |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final KeyType RSA
public static final KeyType DSA
public static final KeyType UNKNOWN
Field Detail |
---|
protected final String sType
Method Detail |
---|
public static KeyType[] values()
for (KeyType c : KeyType.values()) System.out.println(c);
public static KeyType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic abstract PublicKey readPubKeyFromBuffer(String type, Buffer<?> buf) throws GeneralSecurityException
GeneralSecurityException
public abstract void putPubKeyIntoBuffer(PublicKey pk, Buffer<?> buf)
protected abstract boolean isMyType(Key key)
public static KeyType fromKey(Key key)
public static KeyType fromString(String sType)
public String toString()
toString
in class Enum<KeyType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |