org.apache.sshd.common
Interface KeyPairProvider

All Known Implementing Classes:
AbstractGeneratorHostKeyProvider, AbstractKeyPairProvider, FileKeyPairProvider, PEMGeneratorHostKeyProvider, ResourceKeyPairProvider, SimpleGeneratorHostKeyProvider

public interface KeyPairProvider

Provider for key pairs. This provider is used on the server side to provide the host key, or on the client side to provide the user key.

Author:
Apache MINA SSHD Project

Field Summary
static String SSH_DSS
          SSH identifier for DSA keys
static String SSH_RSA
          SSH identifier for RSA keys
 
Method Summary
 String getKeyTypes()
          Return a comma separated list of the key types available
 KeyPair loadKey(String type)
          Load a key of the specified type which can be "ssh-rsa" or "ssh-dss".
 

Field Detail

SSH_RSA

static final String SSH_RSA
SSH identifier for RSA keys

See Also:
Constant Field Values

SSH_DSS

static final String SSH_DSS
SSH identifier for DSA keys

See Also:
Constant Field Values
Method Detail

loadKey

KeyPair loadKey(String type)
Load a key of the specified type which can be "ssh-rsa" or "ssh-dss". If there is no key of this type, return null

Parameters:
type - the type of key to load
Returns:
a valid key pair or null

getKeyTypes

String getKeyTypes()
Return a comma separated list of the key types available

Returns:
the list of key availables


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.