public class SshAddress extends TcpAddress
SshAddress
represents a SSH transport addresses as defined
by RFC 5592 SnmpSSHAddress textual convention.port
ANY_IPADDRESS
SMISYNTAXES_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.
|
parse
compareTo, decodeBER, encodeBER, getBERLength, getBERPayloadLength, getPort, getSyntax, getValue, isValid, setPort, setTransportAddress
clone, fromSubIndex, getInetAddress, setAddress, setInetAddress, setValue, setValue, toByteArray, toInt, toLong, toSubIndex
createFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException
public 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)
Address
parseAddress
in interface Address
parseAddress
in class TransportIpAddress
address
- 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 Variable
equals
in class TcpAddress
public int hashCode()
hashCode
in interface Variable
hashCode
in class TransportIpAddress
public String toString()
AbstractVariable
toString
in interface Variable
toString
in class TransportIpAddress
Copyright © 2013 SNMP4J.org. All rights reserved.