public class FileKeyPair extends java.lang.Object implements ValueFactory<org.apache.sshd.common.keyprovider.KeyPairProvider>
-----BEGIN OPENSSH PRIVATE KEY----- Base 64 stuff -----END RSA PRIVATE KEY-----And not to be confused, as I did, with SSH2 format files hat begin ---- BEGIN SSH2 (note the space) and can have headers in before the Base 64 stuff. Oddjob doesn't currently support these.
ValueFactory.Conversions
Constructor and Description |
---|
FileKeyPair() |
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path[] |
getKeyFiles() |
org.apache.sshd.common.config.keys.FilePasswordProvider |
getPassphraseProvider() |
void |
setKeyFiles(java.nio.file.Path... keyFiles) |
void |
setPassphraseProvider(org.apache.sshd.common.config.keys.FilePasswordProvider passphraseProvider) |
java.lang.String |
toString() |
org.apache.sshd.common.keyprovider.KeyPairProvider |
toValue()
Provide an instance of the type this is a factory for.
|
public org.apache.sshd.common.keyprovider.KeyPairProvider toValue() throws ArooaConversionException
ValueFactory
toValue
in interface ValueFactory<org.apache.sshd.common.keyprovider.KeyPairProvider>
ArooaConversionException
- If unable to provide a value.public java.nio.file.Path[] getKeyFiles()
public void setKeyFiles(java.nio.file.Path... keyFiles)
public org.apache.sshd.common.config.keys.FilePasswordProvider getPassphraseProvider()
public void setPassphraseProvider(org.apache.sshd.common.config.keys.FilePasswordProvider passphraseProvider)
public java.lang.String toString()
toString
in class java.lang.Object