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

public abstract class AbstractKeyPairProvider
extends java.lang.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  java.lang.String getKeyType(java.security.KeyPair kp)
           
 java.lang.String getKeyTypes()
          Return a comma separated list of the key types available
 java.security.KeyPair loadKey(java.lang.String type)
          Load a key of the specified type which can be "ssh-rsa" or "ssh-dss".
protected abstract  java.security.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 java.security.KeyPair loadKey(java.lang.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 java.lang.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 java.lang.String getKeyType(java.security.KeyPair kp)

loadKeys

protected abstract java.security.KeyPair[] loadKeys()


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.