org.snmp4j.smi
Class SshAddress
java.lang.Object
org.snmp4j.smi.AbstractVariable
org.snmp4j.smi.SMIAddress
org.snmp4j.smi.IpAddress
org.snmp4j.smi.TransportIpAddress
org.snmp4j.smi.TcpAddress
org.snmp4j.smi.SshAddress
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.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:
- Serialized Form
Constructor Summary |
SshAddress(java.net.InetAddress inetAddress,
int port)
|
SshAddress(java.net.InetAddress inetAddress,
int port,
java.lang.String userName)
|
SshAddress(java.lang.String addressURI)
|
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAddressURI()
|
java.lang.String |
getUserName()
|
int |
hashCode()
|
boolean |
parseAddress(java.lang.String address)
Parses the address from the supplied string representation. |
java.lang.String |
toString()
Gets a string representation of the variable. |
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 java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
SshAddress
public SshAddress(java.lang.String addressURI)
SshAddress
public SshAddress(java.net.InetAddress inetAddress,
int port)
SshAddress
public SshAddress(java.net.InetAddress inetAddress,
int port,
java.lang.String userName)
getAddressURI
public java.lang.String getAddressURI()
getUserName
public java.lang.String getUserName()
parseAddress
public boolean parseAddress(java.lang.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(java.lang.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 java.lang.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.
Copyright © 2011 SNMP4J.org. All Rights Reserved.