org.apache.sshd.common.keyprovider
Class AbstractKeyPairProvider

java.lang.Object
  extended by org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
All Implemented Interfaces:
KeyPairProvider
Direct Known Subclasses:
AbstractGeneratorHostKeyProvider, FileKeyPairProvider, ResourceKeyPairProvider

public abstract class AbstractKeyPairProvider
extends Object
implements KeyPairProvider

TODO Add javadoc

Author:
Apache MINA SSHD Project

Field Summary
 
Fields inherited from interface org.apache.sshd.common.KeyPairProvider
SSH_DSS, SSH_RSA
 
Constructor Summary
AbstractKeyPairProvider()
           
 
Method Summary
protected  String getKeyType(KeyPair kp)
           
 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".
protected abstract  KeyPair[] loadKeys()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractKeyPairProvider

public AbstractKeyPairProvider()
Method Detail

loadKey

public KeyPair loadKey(String type)
Description copied from interface: KeyPairProvider
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

Specified by:
loadKey in interface KeyPairProvider
Parameters:
type - the type of key to load
Returns:
a valid key pair or null

getKeyTypes

public String getKeyTypes()
Description copied from interface: KeyPairProvider
Return a comma separated list of the key types available

Specified by:
getKeyTypes in interface KeyPairProvider
Returns:
the list of key availables

getKeyType

protected String getKeyType(KeyPair kp)

loadKeys

protected abstract KeyPair[] loadKeys()


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