Class ResourceHelperKeyPairProvider

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
org.apache.camel.component.ssh.ResourceHelperKeyPairProvider
All Implemented Interfaces:
org.apache.sshd.common.keyprovider.KeyIdentityProvider, org.apache.sshd.common.keyprovider.KeyPairProvider

public class ResourceHelperKeyPairProvider extends org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
This host key provider loads private keys from the specified resources using 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.
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
     

    Fields inherited from interface org.apache.sshd.common.keyprovider.KeyIdentityProvider Link icon

    EMPTY_KEYS_PROVIDER

    Fields inherited from interface org.apache.sshd.common.keyprovider.KeyPairProvider Link icon

    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 Summary Link icon

    Constructors
    Constructor
    Description
     
    ResourceHelperKeyPairProvider(String[] resources, Supplier<char[]> passwordFinder, org.apache.camel.CamelContext camelContext)
     
    ResourceHelperKeyPairProvider(String[] resources, org.apache.camel.CamelContext camelContext)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    org.apache.camel.CamelContext
     
    Supplier<char[]>
     
     
    loadKeys(org.apache.sshd.common.session.SessionContext sessionContext)
     
    void
    setCamelContext(org.apache.camel.CamelContext camelContext)
     
    void
    setPasswordFinder(Supplier<char[]> passwordFinder)
     
    void
    setResources(String[] resources)
     

    Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean Link icon

    debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.sshd.common.keyprovider.KeyPairProvider Link icon

    getKeyTypes, loadKey
  • Field Details Link icon

    • log Link icon

      protected final org.slf4j.Logger log
  • Constructor Details Link icon

    • ResourceHelperKeyPairProvider Link icon

      public ResourceHelperKeyPairProvider()
    • ResourceHelperKeyPairProvider Link icon

      public ResourceHelperKeyPairProvider(String[] resources, org.apache.camel.CamelContext camelContext)
    • ResourceHelperKeyPairProvider Link icon

      public ResourceHelperKeyPairProvider(String[] resources, Supplier<char[]> passwordFinder, org.apache.camel.CamelContext camelContext)
  • Method Details Link icon

    • getCamelContext Link icon

      public org.apache.camel.CamelContext getCamelContext()
    • setCamelContext Link icon

      public void setCamelContext(org.apache.camel.CamelContext camelContext)
    • getResources Link icon

      public String[] getResources()
    • setResources Link icon

      public void setResources(String[] resources)
    • getPasswordFinder Link icon

      public Supplier<char[]> getPasswordFinder()
    • setPasswordFinder Link icon

      public void setPasswordFinder(Supplier<char[]> passwordFinder)
    • loadKeys Link icon

      public Iterable<KeyPair> loadKeys(org.apache.sshd.common.session.SessionContext sessionContext) throws IOException, GeneralSecurityException
      Throws:
      IOException
      GeneralSecurityException