- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Variable>,BERSerializable,Address,AssignableFromByteArray,AssignableFromString,Variable
The
TlsAddress represents a TLS transport address as defined
by RFC 5953 SnmpTSLAddress textual convention.- Since:
- 3.0
- Version:
- 3.0
- Author:
- Frank Fock
- See Also:
-
Field Summary
Fields inherited from class org.snmp4j.smi.TransportIpAddress
portFields inherited from class org.snmp4j.smi.IpAddress
ANY_IPADDRESSFields inherited from class org.snmp4j.smi.AbstractVariable
SMISYNTAXES_PROPERTIES -
Constructor Summary
ConstructorsConstructorDescriptionDtlsAddress(int port) Create a DtlsAddress for the local host (InetAddress.getLocalHost()with the provided port.DtlsAddress(String address) DtlsAddress(InetAddress inetAddress, int port) DtlsAddress(UdpAddress udpAddress) -
Method Summary
Methods inherited from class org.snmp4j.smi.TransportIpAddress
compareTo, decodeBER, encodeBER, getBERLength, getBERPayloadLength, getPort, getSyntax, getValue, hashCode, isValid, parseAddress, setPort, setTransportAddress, toStringMethods inherited from class org.snmp4j.smi.IpAddress
fromSubIndex, getFamily, getInetAddress, getSocketAddress, setAddress, setInetAddress, setValue, setValue, toByteArray, toInt, toLong, toSubIndexMethods inherited from class org.snmp4j.smi.AbstractVariable
createFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException
-
Constructor Details
-
DtlsAddress
public DtlsAddress() -
DtlsAddress
-
DtlsAddress
-
DtlsAddress
public DtlsAddress(int port) Create a DtlsAddress for the local host (InetAddress.getLocalHost()with the provided port. If the local host is not known, aRuntimeExceptionis thrown.- Parameters:
port- the UDP port.
-
DtlsAddress
-
-
Method Details
-
parse
-
equals
- Specified by:
equalsin interfaceVariable- Overrides:
equalsin classUdpAddress
-
isTransportCompatible
Checks if the supplied address class is compatible with this class. For example, secure transport classes like TLS are not compatible with TCP because the latter is not able to provide the required security characteristics.- Parameters:
other- theAddressclass to check for compatibility.- Returns:
trueif the provided address class has the same (compatible) on-the-wire characteristics than this address class. By default, this istrueif the provided classotheris the same or a subclass than this class.- Since:
- 3.2.1
-
clone
Description copied from interface:VariableClones this variable. Cloning can be used by the SNMP4J API to better support concurrency by creating a clone for internal processing. The content of this object is independent to the content of the clone. Thus, changes to the clone will have no effect to this object.- Specified by:
clonein interfaceVariable- Overrides:
clonein classUdpAddress- Returns:
- a new instance of this
Variablewith the same value.
-