Package org.snmp4j.smi
Class SshAddress
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Variable>
,BERSerializable
,Address
,AssignableFromByteArray
,AssignableFromString
,Variable
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:
-
Field Summary
Fields inherited from class org.snmp4j.smi.TransportIpAddress
port
Fields inherited from class org.snmp4j.smi.IpAddress
ANY_IPADDRESS
Fields inherited from class org.snmp4j.smi.AbstractVariable
SMISYNTAXES_PROPERTIES
-
Constructor Summary
ConstructorDescriptionSshAddress
(String addressURI) SshAddress
(InetAddress inetAddress, int port) SshAddress
(InetAddress inetAddress, int port, String userName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
parseAddress
(String address) Parses the address from the supplied string representation.toString()
Gets a string representation of the variable.Methods inherited from class org.snmp4j.smi.TcpAddress
parse
Methods inherited from class org.snmp4j.smi.TransportIpAddress
compareTo, decodeBER, encodeBER, getBERLength, getBERPayloadLength, getPort, getSyntax, getValue, isValid, setPort, setTransportAddress
Methods inherited from class org.snmp4j.smi.IpAddress
clone, fromSubIndex, getInetAddress, setAddress, setInetAddress, setValue, setValue, toByteArray, toInt, toLong, toSubIndex
Methods inherited from class org.snmp4j.smi.AbstractVariable
createFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException
-
Constructor Details
-
SshAddress
-
SshAddress
-
SshAddress
-
-
Method Details
-
getAddressURI
-
getUserName
-
parseAddress
Description copied from interface:Address
Parses the address from the supplied string representation.- Specified by:
parseAddress
in interfaceAddress
- Overrides:
parseAddress
in classTransportIpAddress
- Parameters:
address
- a String representation of this address.- Returns:
true
ifaddress
could be successfully parsed and has been assigned to this address object,false
otherwise.
-
equals
- Specified by:
equals
in interfaceVariable
- Overrides:
equals
in classTcpAddress
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceVariable
- Overrides:
hashCode
in classTransportIpAddress
-
toString
Description copied from class:AbstractVariable
Gets a string representation of the variable.- Specified by:
toString
in interfaceVariable
- Overrides:
toString
in classTransportIpAddress
- Returns:
- a string representation of the variable's value.
-