public abstract class AbstractKeyPairProvider extends Object implements KeyPairProvider
SSH_DSS, SSH_RSA
Constructor and Description |
---|
AbstractKeyPairProvider() |
Modifier and Type | Method and Description |
---|---|
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() |
public KeyPair loadKey(String type)
KeyPairProvider
null
loadKey
in interface KeyPairProvider
type
- the type of key to loadnull
public String getKeyTypes()
KeyPairProvider
getKeyTypes
in interface KeyPairProvider
protected abstract KeyPair[] loadKeys()
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.