Class SshConnection


  • public class SshConnection
    extends Object
    SSH Connection information placeholder
    Version:
    3.0
    Author:
    Frank Giordano
    • Constructor Detail

      • SshConnection

        public SshConnection​(String host,
                             int port,
                             String user,
                             String password)
        SshConnection constructor
        Parameters:
        host - machine host pointing to backend z/OS instance
        port - machine host port number pointing to backend z/OS instance
        user - machine host username with access to backend z/OS instance
        password - machine host username's password with access to backend z/OS instance
    • Method Detail

      • getHost

        public String getHost()
        Retrieve host specified
        Returns:
        host value
      • getPort

        public int getPort()
        Retrieve port number specified
        Returns:
        port value
      • getUser

        public String getUser()
        Retrieve username specified
        Returns:
        user value
      • getPassword

        public String getPassword()
        Retrieve password specified
        Returns:
        password value
      • toString

        public String toString()
        Return string value representing SshConnection object
        Overrides:
        toString in class Object
        Returns:
        string representation of SshConnection
      • equals

        public boolean equals​(Object obj)
        Equals method. Use all members for equality.
        Overrides:
        equals in class Object
        Parameters:
        obj - object
        Returns:
        true or false
      • hashCode

        public int hashCode()
        Hashcode method. Use all members for hashing.
        Overrides:
        hashCode in class Object
        Returns:
        int value