public enum

KeyType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ net.schmizz.sshj.common.KeyType

Class Overview

Type of key e.g. rsa, dsa

Summary

Enum Values
KeyType  DSA  SSH identifier for DSA keys  
KeyType  RSA  SSH identifier for RSA keys  
KeyType  UNKNOWN  Unrecognized  
Fields
protected final String sType
[Expand]
Inherited Fields
From class java.lang.Enum
Public Methods
static KeyType fromKey(Key key)
static KeyType fromString(String sType)
abstract void putPubKeyIntoBuffer(PublicKey pk, Buffer<?> buf)
abstract PublicKey readPubKeyFromBuffer(String type, Buffer<?> buf)
String toString()
static KeyType valueOf(String name)
final static KeyType[] values()
Protected Methods
abstract boolean isMyType(Key key)
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final KeyType DSA

SSH identifier for DSA keys

public static final KeyType RSA

SSH identifier for RSA keys

public static final KeyType UNKNOWN

Unrecognized

Fields

protected final String sType

Public Methods

public static KeyType fromKey (Key key)

Parameters
key

public static KeyType fromString (String sType)

Parameters
sType

public abstract void putPubKeyIntoBuffer (PublicKey pk, Buffer<?> buf)

Parameters
pk
buf

public abstract PublicKey readPubKeyFromBuffer (String type, Buffer<?> buf)

Parameters
type
buf
Throws
GeneralSecurityException

public String toString ()

public static KeyType valueOf (String name)

Parameters
name

public static final KeyType[] values ()

Protected Methods

protected abstract boolean isMyType (Key key)

Parameters
key