org.apache.sshd.common.keyprovider
Class AbstractKeyPairProvider
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractKeyPairProvider
public AbstractKeyPairProvider()
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.