Class SshAddress

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Variable>, BERSerializable, Address, AssignableFromByteArray, AssignableFromString, Variable

public class SshAddress extends TcpAddress
The SshAddress represents a SSH transport addresses as defined by RFC 5592 SnmpSSHAddress textual convention.
Since:
2.0
Version:
2.0
Author:
Frank Fock
See Also:
  • Constructor Details

    • SshAddress

      public SshAddress(String addressURI)
    • SshAddress

      public SshAddress(InetAddress inetAddress, int port)
    • SshAddress

      public SshAddress(InetAddress inetAddress, int port, String userName)
  • Method Details

    • getAddressURI

      public String getAddressURI()
    • getUserName

      public String getUserName()
    • parseAddress

      public boolean parseAddress(String address)
      Description copied from interface: Address
      Parses the address from the supplied string representation.
      Specified by:
      parseAddress in interface Address
      Overrides:
      parseAddress in class TransportIpAddress
      Parameters:
      address - a String representation of this address.
      Returns:
      true if address could be successfully parsed and has been assigned to this address object, false otherwise.
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Variable
      Overrides:
      equals in class TcpAddress
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Variable
      Overrides:
      hashCode in class TransportIpAddress
    • toString

      public String toString()
      Description copied from class: AbstractVariable
      Gets a string representation of the variable.
      Specified by:
      toString in interface Variable
      Overrides:
      toString in class TransportIpAddress
      Returns:
      a string representation of the variable's value.