Interface IdentityProvider


  • public interface IdentityProvider
    Enables to add an identity to a java secure channel JSch.
    • Method Detail

      • fromPathToPrivateKey

        static IdentityProvider fromPathToPrivateKey​(String path)
        Parameters:
        path - path to file containing private key
        Returns:
        IdentityProvider using private key from the specified file
      • addIdentityTo

        void addIdentityTo​(com.jcraft.jsch.JSch jsch)
                    throws com.jcraft.jsch.JSchException
        Adds the identity represented by the current instance to java secure channel JSch.
        Parameters:
        jsch - java secure channel JSch to add identity to
        Throws:
        com.jcraft.jsch.JSchException - if adding identity fails.