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 java.lang.Object
- implements KeyPairProvider
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
|
Field Summary |
protected org.slf4j.Logger |
log
|
|
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 |
log
protected final org.slf4j.Logger log
AbstractKeyPairProvider
public AbstractKeyPairProvider()
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-2012 The Apache Software Foundation. All Rights Reserved.