public class SshAddress extends TcpAddress
SshAddress represents a SSH transport addresses as defined
by RFC 5592 SnmpSSHAddress textual convention.portANY_IPADDRESSSMISYNTAXES_PROPERTIES| Constructor and Description |
|---|
SshAddress(InetAddress inetAddress,
int port) |
SshAddress(InetAddress inetAddress,
int port,
String userName) |
SshAddress(String addressURI) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAddressURI() |
String |
getUserName() |
int |
hashCode() |
boolean |
parseAddress(String address)
Parses the address from the supplied string representation.
|
String |
toString()
Gets a string representation of the variable.
|
parsecompareTo, decodeBER, encodeBER, getBERLength, getBERPayloadLength, getPort, getSyntax, getValue, isValid, setPort, setTransportAddressclone, fromSubIndex, getInetAddress, setAddress, setInetAddress, setValue, setValue, toByteArray, toInt, toLong, toSubIndexcreateFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isExceptionpublic SshAddress(String addressURI)
public SshAddress(InetAddress inetAddress, int port)
public SshAddress(InetAddress inetAddress, int port, String userName)
public String getAddressURI()
public String getUserName()
public boolean parseAddress(String address)
AddressparseAddress in interface AddressparseAddress in class TransportIpAddressaddress - a String representation of this address.true if address could be successfully
parsed and has been assigned to this address object, false
otherwise.public boolean equals(Object o)
equals in interface Variableequals in class TcpAddresspublic int hashCode()
hashCode in interface VariablehashCode in class TransportIpAddresspublic String toString()
AbstractVariabletoString in interface VariabletoString in class TransportIpAddressCopyright © 2016 SNMP4J.org. All Rights Reserved.