public class ResourceHelperKeyPairProvider
extends org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
ResourceHelper, and Camel's
resource syntax for file:, classpath:, and http:. ResourceHelper, and Camel's resource syntax for file:,
classpath:, and http:.
Note that this class has a direct dependency on BouncyCastle and won't work unless it has been correctly registered
as a security provider.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
ECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_DSS_CERT, SSH_ECDSA_SHA2_NISTP256_CERT, SSH_ECDSA_SHA2_NISTP384_CERT, SSH_ECDSA_SHA2_NISTP521_CERT, SSH_ED25519, SSH_ED25519_CERT, SSH_RSA, SSH_RSA_CERT| Constructor and Description |
|---|
ResourceHelperKeyPairProvider() |
ResourceHelperKeyPairProvider(String[] resources,
org.apache.camel.CamelContext camelContext) |
ResourceHelperKeyPairProvider(String[] resources,
Supplier<char[]> passwordFinder,
org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.CamelContext |
getCamelContext() |
Supplier<char[]> |
getPasswordFinder() |
String[] |
getResources() |
Iterable<KeyPair> |
loadKeys(org.apache.sshd.common.session.SessionContext sessionContext) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setPasswordFinder(Supplier<char[]> passwordFinder) |
void |
setResources(String[] resources) |
getSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ResourceHelperKeyPairProvider()
public ResourceHelperKeyPairProvider(String[] resources, org.apache.camel.CamelContext camelContext)
public org.apache.camel.CamelContext getCamelContext()
public void setCamelContext(org.apache.camel.CamelContext camelContext)
public String[] getResources()
public void setResources(String[] resources)
public Supplier<char[]> getPasswordFinder()
public void setPasswordFinder(Supplier<char[]> passwordFinder)
public Iterable<KeyPair> loadKeys(org.apache.sshd.common.session.SessionContext sessionContext) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionApache Camel